java.lang.Object
com.intellij.lang.impl.PsiBuilderAdapter
com.intellij.indentation.IndentPsiBuilder
- All Implemented Interfaces:
PsiBuilder,SyntaxTreeBuilder,com.intellij.openapi.util.UserDataHolder
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from interface com.intellij.lang.PsiBuilder
PsiBuilder.Marker -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected intprotected HashMap<PsiBuilder.Marker,Integer> protected booleanprotected HashMap<PsiBuilder.Marker,Boolean> Fields inherited from class com.intellij.lang.impl.PsiBuilderAdapter
myDelegate -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidAdvances the lexer to the next token, skipping whitespace and comment tokens.protected PsiBuilder.MarkercreateDelegateMarker(@NotNull PsiBuilder.Marker delegate) intboolean@NotNull PsiBuilder.Markermark()Creates a marker at the current parsing position.@NotNull PsiBuilder.MarkervoidrecalculateCurrentIndent(@NotNull IElementType eolElementType, @NotNull IElementType indentElementType) Methods inherited from class com.intellij.lang.impl.PsiBuilderAdapter
enforceCommentTokens, eof, error, getCurrentOffset, getDelegate, getLatestDoneMarker, getOriginalText, getTokenText, getTokenType, getUserData, isWhitespaceOrComment, lookAhead, putUserData, rawLookup, rawTokenIndex, rawTokenTypeStart, remapCurrentToken, setDebugMode, setTokenTypeRemapper, setWhitespaceSkippedCallbackMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.intellij.lang.PsiBuilder
getTreeBuilt
-
Field Details
-
myNewLine
protected boolean myNewLine -
myCurrentIndent
protected int myCurrentIndent -
myIndents
-
myNewLines
-
-
Constructor Details
-
IndentPsiBuilder
-
-
Method Details
-
advanceLexer
public void advanceLexer()Description copied from interface:SyntaxTreeBuilderAdvances the lexer to the next token, skipping whitespace and comment tokens.- Specified by:
advanceLexerin interfaceSyntaxTreeBuilder- Overrides:
advanceLexerin classPsiBuilderAdapter
-
mark
Description copied from interface:SyntaxTreeBuilderCreates a marker at the current parsing position.- Specified by:
markin interfacePsiBuilder- Specified by:
markin interfaceSyntaxTreeBuilder- Overrides:
markin classPsiBuilderAdapter- Returns:
- the new marker instance.
-
markWithRollbackPossibility
-
createDelegateMarker
-
isNewLine
public boolean isNewLine() -
getCurrentIndent
public int getCurrentIndent() -
recalculateCurrentIndent
public void recalculateCurrentIndent(@NotNull @NotNull IElementType eolElementType, @NotNull @NotNull IElementType indentElementType)
-