public class SwitchGroupList 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 |
SwitchGroupList.SwitchGroupListIterator
Used to iterate though the children of a list of AST nodes.
|
List.NodeListIteratorbyteOffset, line, nodeID, symbolTable| Constructor and Description |
|---|
SwitchGroupList()
Default constructor.
|
SwitchGroupList(SwitchGroup s)
Initializing constructor.
|
| Modifier and Type | Method and Description |
|---|---|
void |
add(SwitchGroup s)
Adds another
SwitchGroup to the end of the list. |
void |
addAll(SwitchGroupList s)
Adds all the
SwitchGroups in another SwitchGroupList to the end of
this SwitchGroupList. |
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.
|
SwitchGroupList.SwitchGroupListIterator |
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. |
SwitchGroup[] |
toArray()
Transforms the list into an array of statements.
|
equals, getSeparator, hashCode, size, sort, sort, write, writeBufferpublic SwitchGroupList()
public SwitchGroupList(SwitchGroup s)
null.s - A single SwitchGroup with which to initialize this list.public void add(SwitchGroup s)
SwitchGroup to the end of the list.s - A reference to the SwitchGroup to be added.public void addAll(SwitchGroupList s)
SwitchGroups in another SwitchGroupList to the end of
this SwitchGroupList.s - The list to be added.public SwitchGroup[] toArray()
public SwitchGroupList.SwitchGroupListIterator listIterator()
public ASTNodeIterator iterator()
public Object clone()
Copyright © 2016. All rights reserved.