|
ABLE 2.3.0 07/13/2005 14:21:00 | |||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||||
java.lang.Objectcom.ibm.able.rules.AbleARLTreeNode
This class represents a node in the abstract syntax tree created as a byproduct of parsing an ABLE Rule Language file using the Antlr (AbleARLParser) parser. A tree structure made out of these nodes is used to show the outline of the ARL ruleset in Eclipse.
| Field Summary | |
|---|---|
protected java.util.Vector |
children
|
protected int |
myColumn
|
protected int |
myLength
|
protected int |
myLine
|
protected int |
myOffset
|
protected AbleARLTreeNode |
myParent
|
protected AbleParException |
myParException
|
protected java.lang.String |
myText
|
protected int |
myTokenType
|
protected int |
numChars
|
| Constructor Summary | |
|---|---|
AbleARLTreeNode(java.lang.String theText)
Create an ARL Tree node with specified text (and no Token info) |
|
AbleARLTreeNode(antlr.Token theToken)
Create an ARL Tree node with line, column, text from the antlr Token |
|
AbleARLTreeNode(antlr.Token theToken,
java.lang.String theText)
Create an ARL Tree node and append theText to the token text |
|
| Method Summary | |
|---|---|
void |
addChild(AbleARLTreeNode node)
|
void |
addText(java.lang.String theText)
|
java.lang.String |
displayString()
Return a formatted string of the ARL tree with this node as root |
java.lang.Object[] |
getChildren()
|
int |
getLength()
|
int |
getLine()
|
int |
getNumChars()
|
int |
getOffset()
|
java.lang.Object |
getParent()
return the parent node or (null) if none |
AbleParException |
getParException()
Retrieve the parse exception info (only found on root node) |
int |
getTokenType()
|
boolean |
hasChildren()
|
void |
setLength(int length)
|
void |
setOffset(int offset)
|
void |
setParent(AbleARLTreeNode theParent)
|
void |
setParException(AbleParException theException)
Set the parse error info (for use, only on the root node) |
java.lang.String |
toString()
Return the text associated with this node |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
protected AbleARLTreeNode myParent
protected int myTokenType
protected int myLine
protected int myColumn
protected int myOffset
protected int myLength
protected java.lang.String myText
protected int numChars
protected java.util.Vector children
protected AbleParException myParException
| Constructor Detail |
public AbleARLTreeNode(antlr.Token theToken)
public AbleARLTreeNode(antlr.Token theToken,
java.lang.String theText)
public AbleARLTreeNode(java.lang.String theText)
| Method Detail |
public void addChild(AbleARLTreeNode node)
public void addText(java.lang.String theText)
public void setParent(AbleARLTreeNode theParent)
public java.lang.Object getParent()
public boolean hasChildren()
public java.lang.Object[] getChildren()
public int getLine()
public int getNumChars()
public int getLength()
public void setLength(int length)
public void setOffset(int offset)
public int getOffset()
public java.lang.String toString()
public int getTokenType()
public java.lang.String displayString()
public void setParException(AbleParException theException)
public AbleParException getParException()
|
ABLE 2.3.0 07/13/2005 14:21:00 | |||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||||