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
FieldsFields inherited from class TreeParser
DOWN, input, UPFields inherited from class 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 TreeParser
getAncestor, getCurrentInputSymbol, getErrorHeader, getErrorMessage, getMissingSymbol, getSourceName, getTreeNodeStream, inContext, inContext, matchAny, recoverFromMismatchedToken, reset, setTreeNodeStream, traceIn, traceOutMethods inherited from class 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
-
-
Constructor Details
-
TreeRewriter
-
-
Method Details
-
applyOnce
-
applyRepeatedly
-
downup
-
downup
-
reportTransformation
-
topdown
- Throws:
RecognitionException
-
bottomup
- Throws:
RecognitionException
-