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
PsiParserFacade
createWhiteSpaceFromText
in interface PsiParserFacade
text
- the text of whitespaceIncorrectOperationException
- if the text does not specify a valid whitespace.public PsiComment createLineCommentFromText(LanguageFileType fileType, java.lang.String text) throws IncorrectOperationException
PsiParserFacade
createLineCommentFromText
in interface PsiParserFacade
IncorrectOperationException
public PsiComment createBlockCommentFromText(Language language, java.lang.String text) throws IncorrectOperationException
PsiParserFacade
createBlockCommentFromText
in interface PsiParserFacade
IncorrectOperationException
public PsiComment createLineOrBlockCommentFromText(Language lang, java.lang.String text) throws IncorrectOperationException
PsiParserFacade
createLineOrBlockCommentFromText
in interface PsiParserFacade
IncorrectOperationException