Package org.antlr.runtime.tree
Class TreeRewriter
java.lang.Object
org.antlr.runtime.BaseRecognizer
org.antlr.runtime.tree.TreeParser
org.antlr.runtime.tree.TreeRewriter
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescription(package private) TreeRewriter.fptrprotected TreeAdaptorprotected TokenStreamprotected boolean(package private) TreeRewriter.fptrFields inherited from class org.antlr.runtime.tree.TreeParser
dotdot, dotdotPattern, doubleEtc, doubleEtcPattern, DOWN, input, UPFields inherited from class org.antlr.runtime.BaseRecognizer
DEFAULT_TOKEN_CHANNEL, HIDDEN, INITIAL_FOLLOW_STACK_SIZE, MEMO_RULE_FAILED, MEMO_RULE_UNKNOWN, NEXT_TOKEN_RULE_NAME, state -
Constructor Summary
ConstructorsConstructorDescriptionTreeRewriter(TreeNodeStream input) TreeRewriter(TreeNodeStream input, RecognizerSharedState state) -
Method Summary
Modifier and TypeMethodDescriptionapplyOnce(Object t, TreeRewriter.fptr whichRule) applyRepeatedly(Object t, TreeRewriter.fptr whichRule) bottomup()voidreportTransformation(Object oldTree, Object newTree) Override this if you need transformation tracing to go somewhere other than stdout or if you're not using Tree-derived trees.topdown()Methods inherited from class org.antlr.runtime.tree.TreeParser
getAncestor, getCurrentInputSymbol, getErrorHeader, getErrorMessage, getMissingSymbol, getSourceName, getTreeNodeStream, inContext, inContext, matchAny, recoverFromMismatchedToken, reset, setTreeNodeStream, traceIn, traceOutMethods inherited from class org.antlr.runtime.BaseRecognizer
alreadyParsedRule, beginResync, combineFollows, computeContextSensitiveRuleFOLLOW, computeErrorRecoverySet, consumeUntil, consumeUntil, displayRecognitionError, emitErrorMessage, endResync, failed, getBacktrackingLevel, getGrammarFileName, getNumberOfSyntaxErrors, getRuleInvocationStack, getRuleInvocationStack, getRuleMemoization, getRuleMemoizationCacheSize, getTokenErrorDisplay, getTokenNames, match, memoize, mismatchIsMissingToken, mismatchIsUnwantedToken, pushFollow, recover, recoverFromMismatchedSet, reportError, setBacktrackingLevel, toStrings, traceIn, traceOut
-
Field Details
-
showTransformations
protected boolean showTransformations -
originalTokenStream
-
originalAdaptor
-
topdown_fptr
TreeRewriter.fptr topdown_fptr -
bottomup_ftpr
TreeRewriter.fptr bottomup_ftpr
-
-
Constructor Details
-
TreeRewriter
-
-
Method Details
-
applyOnce
-
applyRepeatedly
-
downup
-
downup
-
reportTransformation
Override this if you need transformation tracing to go somewhere other than stdout or if you're not using Tree-derived trees. -
topdown
- Throws:
RecognitionException
-
bottomup
- Throws:
RecognitionException
-