public class CodeStatementCollection extends ArrayList<CodeStatement> implements IdentifierScope
modCount| Constructor and Description |
|---|
CodeStatementCollection(CodeObject owner) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
add(CodeExpression expression) |
boolean |
addAll(CodeStatement[] statements) |
boolean |
addAll(CodeStatementBlock block) |
boolean |
equals(Object arg) |
CodeStatement |
getFirstStatement() |
CodeStatement |
getLastStatement() |
CodeObject |
getOwner() |
int |
hashCode() |
boolean |
isLocalIdent(String ident)
Determines if the client ident is declared in local scope
|
Iterator<CodeStatement> |
iterator() |
String |
nextIdent(String prefix)
Gets a new unique ident with the given prefix
|
String |
uniqueIdent(String ident)
Gets the corresponding unique server ident for the client ident
|
add, add, addAll, addAll, clear, clone, contains, ensureCapacity, get, indexOf, isEmpty, lastIndexOf, listIterator, listIterator, remove, remove, removeAll, removeRange, retainAll, set, size, subList, toArray, toArray, trimToSizecontainsAll, toStringfinalize, getClass, notify, notifyAll, wait, wait, waitcontainsAllpublic CodeStatementCollection(CodeObject owner)
public CodeObject getOwner()
public boolean addAll(CodeStatementBlock block)
public boolean addAll(CodeStatement[] statements)
public boolean add(CodeExpression expression)
public CodeStatement getFirstStatement()
public CodeStatement getLastStatement()
public boolean isLocalIdent(String ident)
IdentifierScopeisLocalIdent in interface IdentifierScopepublic String uniqueIdent(String ident)
IdentifierScopeuniqueIdent in interface IdentifierScopepublic String nextIdent(String prefix)
IdentifierScopenextIdent in interface IdentifierScopepublic Iterator<CodeStatement> iterator()
iterator in interface Iterable<CodeStatement>iterator in interface Collection<CodeStatement>iterator in interface List<CodeStatement>iterator in class ArrayList<CodeStatement>public boolean equals(Object arg)
equals in interface Collection<CodeStatement>equals in interface List<CodeStatement>equals in class AbstractList<CodeStatement>public int hashCode()
hashCode in interface Collection<CodeStatement>hashCode in interface List<CodeStatement>hashCode in class AbstractList<CodeStatement>Copyright © 2014. All rights reserved.