Top Inners Fields Constructors Methods
org.antlr.runtime.tree

public Class TreeRewriter

extends TreeParser
Class Inheritance
Imports
org.antlr.runtime.RecognizerSharedState, .RecognitionException, .TokenStream

Nested and Inner Type Summary

Modifier and TypeClass and Description
public static interface

Field Summary

Modifier and TypeField and Description
pack-priv TreeRewriter.fptr
protected TreeAdaptor
protected TokenStream
protected boolean
pack-priv TreeRewriter.fptr
Inherited from org.antlr.runtime.tree.TreeParser:
dotdotdotdotPatterndoubleEtcdoubleEtcPatternDOWNinputUP

Constructor Summary

AccessConstructor and Description
public
public

Method Summary

Modifier and TypeMethod and Description
public Object
public Object
public Object
public Object
public Object
downup(Object t, boolean showTransformations)

public void
reportTransformation(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.

public Object
Inherited from org.antlr.runtime.tree.TreeParser:
getAncestorgetCurrentInputSymbolgetErrorHeadergetErrorMessagegetMissingSymbolgetSourceNamegetTreeNodeStreaminContextinContextmatchAnyrecoverFromMismatchedTokenresetsetTreeNodeStreamtraceIntraceOut

Field Detail

bottomup_ftprback to summary
pack-priv TreeRewriter.fptr bottomup_ftpr
originalAdaptorback to summary
protected TreeAdaptor originalAdaptor
originalTokenStreamback to summary
protected TokenStream originalTokenStream
showTransformationsback to summary
protected boolean showTransformations
topdown_fptrback to summary
pack-priv TreeRewriter.fptr topdown_fptr

Constructor Detail

TreeRewriterback to summary
public TreeRewriter(TreeNodeStream input)
TreeRewriterback to summary
public TreeRewriter(TreeNodeStream input, RecognizerSharedState state)

Method Detail

applyOnceback to summary
public Object applyOnce(Object t, TreeRewriter.fptr whichRule)
applyRepeatedlyback to summary
public Object applyRepeatedly(Object t, TreeRewriter.fptr whichRule)
bottomupback to summary
public Object bottomup() throws RecognitionException
downupback to summary
public Object downup(Object t)
downupback to summary
public Object downup(Object t, boolean showTransformations)
reportTransformationback to summary
public void reportTransformation(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.

topdownback to summary
public Object topdown() throws RecognitionException
org.antlr.runtime.tree back to summary

public Interface TreeRewriter.fptr


Method Summary

Modifier and TypeMethod and Description
public Object
rule()

Method Detail

ruleback to summary
public Object rule() throws RecognitionException