public final class PsiParserFacadeImpl extends java.lang.Object implements PsiParserFacade
PsiParserFacade.SERVICE| Constructor and Description |
|---|
PsiParserFacadeImpl(Project project) |
| Modifier and Type | Method and Description |
|---|---|
PsiComment |
createBlockCommentFromText(Language language,
java.lang.String text)
Creates a line comment for the specified language.
|
PsiComment |
createLineCommentFromText(LanguageFileType fileType,
java.lang.String text)
Creates a line comment for the specified language.
|
PsiComment |
createLineOrBlockCommentFromText(Language lang,
java.lang.String text)
Creates a line comment for the specified language or block comment if language doesn't support line ones
|
PsiElement |
createWhiteSpaceFromText(java.lang.String text)
Creates an PsiWhiteSpace with the specified text.
|
public PsiParserFacadeImpl(Project project)
public PsiElement createWhiteSpaceFromText(java.lang.String text) throws IncorrectOperationException
PsiParserFacadecreateWhiteSpaceFromText in interface PsiParserFacadetext - the text of whitespaceIncorrectOperationException - if the text does not specify a valid whitespace.public PsiComment createLineCommentFromText(LanguageFileType fileType, java.lang.String text) throws IncorrectOperationException
PsiParserFacadecreateLineCommentFromText in interface PsiParserFacadeIncorrectOperationExceptionpublic PsiComment createBlockCommentFromText(Language language, java.lang.String text) throws IncorrectOperationException
PsiParserFacadecreateBlockCommentFromText in interface PsiParserFacadeIncorrectOperationExceptionpublic PsiComment createLineOrBlockCommentFromText(Language lang, java.lang.String text) throws IncorrectOperationException
PsiParserFacadecreateLineOrBlockCommentFromText in interface PsiParserFacadeIncorrectOperationException