|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectast.ASTNode
ast.ListNode
public abstract class ListNode
The abstract ListNode class represents a generic list of AST nodes. It contains a line number (lineNum) and a list (listElements).
ASTNode
Field Summary |
---|
Fields inherited from class ast.ASTNode |
---|
charNum, lineNum, lineStr |
Constructor Summary | |
---|---|
protected |
ListNode(int lineNum)
ListNode constructor |
Method Summary | |
---|---|
abstract java.lang.Object |
accept(visitor.Visitor v,
java.lang.Object o)
Visitor method |
ListNode |
addElement(ASTNode node)
Add an element to this list node |
java.util.Iterator<ASTNode> |
getIterator()
Returns an iterator for this list |
int |
getSize()
Get the list size |
Methods inherited from class ast.ASTNode |
---|
getLineNum |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
protected ListNode(int lineNum)
lineNum
- source line number corresponding to this AST nodeMethod Detail |
---|
public ListNode addElement(ASTNode node)
node
- element to add
public java.util.Iterator<ASTNode> getIterator()
public int getSize()
public abstract java.lang.Object accept(visitor.Visitor v, java.lang.Object o)
accept
in class ASTNode
v
- visitor objecto
- object to pass down
Visitor
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |