public class ClassifierExpressionList extends List
LinkedList. The code that uses it looks
a little cleaner when casts are all taken care of automatically.| Modifier and Type | Class and Description |
|---|---|
class |
ClassifierExpressionList.ClassifierExpressionListIterator
Used to iterate though the children of a list of AST nodes.
|
List.NodeListIteratorbyteOffset, line, nodeID, symbolTable| Constructor and Description |
|---|
ClassifierExpressionList()
Default constructor.
|
ClassifierExpressionList(ClassifierExpression e)
Initializing constructor.
|
| Modifier and Type | Method and Description |
|---|---|
void |
add(ClassifierExpression e)
Adds another
ClassifierExpression to the end of the list. |
void |
addAll(ClassifierExpressionList e)
Adds all the
ClassifierExpressions in another
ClassifierExpressionList to the end of this
ClassifierExpressionList. |
Object |
clone()
Creates a new object with the same primitive data, and recursively creates new member data
objects as well.
|
ASTNodeIterator |
iterator()
Returns an iterator used to successively access the children of this node.
|
ClassifierExpressionList.ClassifierExpressionListIterator |
listIterator()
Returns an iterator used specifically to access the elements of this list.
|
void |
runPass(Pass pass)
Ensures that the correct
run() method is called for this type of node. |
ClassifierExpression[] |
toArray()
Transforms the list into an array of expressions.
|
equals, getSeparator, hashCode, size, sort, sort, write, writeBufferpublic ClassifierExpressionList()
public ClassifierExpressionList(ClassifierExpression e)
null.e - A single Expression with which to initialize this list.public void add(ClassifierExpression e)
ClassifierExpression to the end of the list.e - A reference to the ClassifierExpression to be added.public void addAll(ClassifierExpressionList e)
ClassifierExpressions in another
ClassifierExpressionList to the end of this
ClassifierExpressionList.e - The list to be added.public ClassifierExpression[] toArray()
public ClassifierExpressionList.ClassifierExpressionListIterator listIterator()
public ASTNodeIterator iterator()
public Object clone()
Copyright © 2016. All rights reserved.