public static class DefaultCodeBuilder.BaseCodes extends java.lang.Object implements Codes, MutableCodes
Code.Callable, Code.Constant, Code.EmptyFormatter, Code.Identifier, Code.MethodCALLABLE, CODES, CONSTANT, EMPTY_FORMATTER, IDENTIFIER, METHOD, UNDEFINEDEMPTY_UNMODIFIABLEBASICLISTEMPTY_GETITEMWITHSIZEANDITERATOR| Constructor and Description |
|---|
BaseCodes() |
| Modifier and Type | Method and Description |
|---|---|
void |
accept(Visitor visitor)
Provides each value of this container to the provided
Visitor. |
void |
accept(Visitor visitor,
java.util.function.Predicate<FilteredVisitable> exclude)
Provides each value of this container to the provided
Visitor. |
void |
add(Code arg) |
Codes |
clone()
Creates a copy of the object.
|
int |
code() |
Code |
get(int n) |
void |
insert(int pos,
Code arg) |
boolean |
isEmpty() |
java.util.Iterator<Code> |
iterator() |
void |
link() |
void |
link(SymbolTable symbolTable) |
void |
link(SymbolTable symbolTable,
boolean force) |
void |
replace(Code target,
Code replacement) |
void |
set(int pos,
Code arg) |
int |
size() |
java.util.List<Code> |
toList() |
java.lang.String |
toString() |
java.lang.String |
toString(Formatter<Code> formatter) |
ExpressionBuilder.Value |
toValue() |
ExpressionBuilder.Value |
toValue(ExpressionBuilder builder) |
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitisFunction, isIdentifieracceptisEmpty, isEmpty, isEmptyQuietlypublic Codes clone() throws java.lang.CloneNotSupportedException
Cloneableclone in interface Codeclone in interface Codesclone in class java.lang.Objectjava.lang.CloneNotSupportedException - if the instance of the object cannot
be cloned. As this is extending Cloneable so its sure
it implements it, so this exception may be used for problems on specific
object instances.Object#clone()}.public void add(Code arg)
add in interface MutableCodespublic void set(int pos,
Code arg)
set in interface MutableCodespublic void insert(int pos,
Code arg)
insert in interface MutableCodespublic java.util.Iterator<Code> iterator()
iterator in interface java.lang.Iterable<Code>public java.util.List<Code> toList()
toList in interface UnmodifiableBasicList<Code>public void accept(Visitor visitor) throws BaseException
VisitableVisitor.accept in interface Visitablevisitor - the visitor to apply to each value.BaseException - if there is an error while performing the visitpublic void accept(Visitor visitor, java.util.function.Predicate<FilteredVisitable> exclude) throws BaseException
FilteredVisitableVisitor.accept in interface FilteredVisitablevisitor - the visitor to apply to each value.BaseException - if there is an error while performing the visitpublic java.lang.String toString()
toString in class java.lang.Objectpublic ExpressionBuilder.Value toValue(ExpressionBuilder builder)
public ExpressionBuilder.Value toValue()
public void link(SymbolTable symbolTable)
public void link(SymbolTable symbolTable, boolean force)