Class PrintTokenVisitor
java.lang.Object
org.jd.core.v1.service.writer.visitor.PrintTokenVisitor
- All Implemented Interfaces:
TokenVisitor
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionprotected static class
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
end()
protected void
protected int
void
void
visit
(BooleanConstantToken token) void
visit
(CharacterConstantToken token) void
visit
(DeclarationToken token) void
visit
(EndBlockToken token) void
visit
(EndMarkerToken token) void
visit
(KeywordToken token) void
visit
(LineNumberToken token) void
visit
(NewLineToken token) void
visit
(NumericConstantToken token) void
visit
(ReferenceToken token) void
visit
(StartBlockToken token) void
visit
(StartMarkerToken token) void
visit
(StringConstantToken token) void
-
Field Details
-
UNKNOWN_LINE_NUMBER
public static int UNKNOWN_LINE_NUMBER -
searchLineNumberVisitor
-
printer
-
tokens
-
index
protected int index -
newLineCount
protected int newLineCount
-
-
Constructor Details
-
PrintTokenVisitor
public PrintTokenVisitor()
-
-
Method Details
-
start
-
end
public void end() -
visit
- Specified by:
visit
in interfaceTokenVisitor
-
visit
- Specified by:
visit
in interfaceTokenVisitor
-
visit
- Specified by:
visit
in interfaceTokenVisitor
-
visit
- Specified by:
visit
in interfaceTokenVisitor
-
visit
- Specified by:
visit
in interfaceTokenVisitor
-
visit
- Specified by:
visit
in interfaceTokenVisitor
-
visit
- Specified by:
visit
in interfaceTokenVisitor
-
visit
- Specified by:
visit
in interfaceTokenVisitor
-
visit
- Specified by:
visit
in interfaceTokenVisitor
-
visit
- Specified by:
visit
in interfaceTokenVisitor
-
visit
- Specified by:
visit
in interfaceTokenVisitor
-
visit
- Specified by:
visit
in interfaceTokenVisitor
-
visit
- Specified by:
visit
in interfaceTokenVisitor
-
visit
- Specified by:
visit
in interfaceTokenVisitor
-
prepareNewLine
protected void prepareNewLine() -
searchLineNumber
protected int searchLineNumber()
-