| biz.hammurapi.antlr.AST
AST | public class AST extends CommonAST implements SourceMarker,Visitable(Code) | | Holds line and column numbers
author: Pavel Vlasov version: $Revision: 1.8 $ |
Method Summary | |
public boolean | accept(Visitor visitor) | public void | addChild(antlr.collections.AST node) | public void | enumerate() | public boolean | equals(Object obj) | public int | getColumn() | public Token | getFirstToken() | public String | getId() | public Token | getLastToken() | public int | getLeftColumn() | public int | getLine() | public AST | getParent() | public AST | getPrevSibling() | public int | getSize() | public Integer | getSourceId() | public String | getSourceURL() | public Token | getToken() | public int | hashCode() | public void | initialize(antlr.Token tok) | public void | initialize(antlr.collections.AST node) | boolean | isLoaded() | public void | print(String[] tokenNames, boolean withSiblings) | public void | print(String[] tokenNames, PrintStream out, int level, boolean withSiblings) | public void | remove() | public void | setFirstChild(antlr.collections.AST c) | void | setLoaded(boolean loaded) | public void | setNextSibling(antlr.collections.AST n) | protected void | setParent(AST parent) | protected void | setPrevSibling(AST prevSibling) | public void | setSourceURL(String sourceURL) | public void | show(String[] tokenNames) | public void | showWithSiblings(String title, String[] tokenNames) | protected void | tabs(PrintStream out, int level) | protected void | visit(String[] tokenNames, AST node, int level, PrintStream out) | protected void | visitAll(String[] tokenNames, AST node, int level, PrintStream out) |
addChild | public void addChild(antlr.collections.AST node)(Code) | | Parent calculation
|
enumerate | public void enumerate()(Code) | | |
getColumn | public int getColumn()(Code) | | |
getLeftColumn | public int getLeftColumn()(Code) | | Returns leftmost non-zero column among itself and all children
|
getLine | public int getLine()(Code) | | |
getPrevSibling | public AST getPrevSibling()(Code) | | |
getSize | public int getSize()(Code) | | |
hashCode | public int hashCode()(Code) | | |
initialize | public void initialize(antlr.Token tok)(Code) | | |
initialize | public void initialize(antlr.collections.AST node)(Code) | | |
isLoaded | boolean isLoaded()(Code) | | Indicates that the node has been processed by superclass and can be ignored
Returns the loaded. |
print | public void print(String[] tokenNames, boolean withSiblings)(Code) | | |
remove | public void remove()(Code) | | Removes AST from tree
|
setFirstChild | public void setFirstChild(antlr.collections.AST c)(Code) | | |
setLoaded | void setLoaded(boolean loaded)(Code) | | Parameters: loaded - The loaded to set. |
setNextSibling | public void setNextSibling(antlr.collections.AST n)(Code) | | |
setParent | protected void setParent(AST parent)(Code) | | |
setPrevSibling | protected void setPrevSibling(AST prevSibling)(Code) | | |
setSourceURL | public void setSourceURL(String sourceURL)(Code) | | |
|
|