public static class AstBufferUtil.BufferVisitor extends RecursiveTreeElementWalkingVisitor
Modifier and Type | Field and Description |
---|---|
protected char[] |
buffer |
protected int |
end |
protected int |
offset |
Constructor and Description |
---|
BufferVisitor(boolean skipWhitespace,
boolean skipComments,
int offset,
char [] buffer) |
BufferVisitor(PsiElement element,
boolean skipWhitespace,
boolean skipComments) |
Modifier and Type | Method and Description |
---|---|
java.lang.CharSequence |
createCharSequence() |
char [] |
getBuffer() |
int |
getEnd() |
protected boolean |
isIgnored(LeafElement element) |
void |
visitComposite(CompositeElement composite) |
void |
visitLeaf(LeafElement element) |
elementFinished, stopWalking, visitNode
protected final int offset
protected int end
protected final char[] buffer
public BufferVisitor(PsiElement element, boolean skipWhitespace, boolean skipComments)
public BufferVisitor(boolean skipWhitespace, boolean skipComments, int offset, char [] buffer)
public int getEnd()
public char [] getBuffer()
public java.lang.CharSequence createCharSequence()
public void visitLeaf(LeafElement element)
visitLeaf
in class RecursiveTreeElementWalkingVisitor
protected boolean isIgnored(LeafElement element)
public void visitComposite(CompositeElement composite)
visitComposite
in class RecursiveTreeElementWalkingVisitor