gnu.expr
Class ExpWalker
public
class
ExpWalker
extends Object
implements SourceLocator
Class for doing a tree-walk over an Expression tree.
public void error(char kind, String message)
public final int getColumnNumber()
Get the Compilation associated with this walker.
public final String getFileName()
public final int getLineNumber()
public String getPublicId()
public String getSystemId()
public boolean isStableSourceLocation()
Normally same as getSystemId.
public void setColumn(int column)
public void setFile(String filename)
public void setLine(int line)
public void setLine(String filename, int line, int column)
Call the walk method of argument Expression.
Could call Expression's walk directly, but this allows us to
interpose a method call on each Expression. We use it to note the
Expression's line number. Should not need to be overridden;
if you do, you may also want to override walkExps.
protected final void walkDeclarationType(
Declaration decl)
protected final void walkDeclarationTypes(
ScopeExp exp)
Call walk on the Expressions in an array.
However, the walk method is inlined for speed.