public static class DefaultCodeBuilder.BaseCodes extends java.lang.Object implements Codes, MutableCodes
Code.Callable, Code.Constant, Code.EmptyFormatter, Code.Identifier, Code.Method
CALLABLE, CODES, CONSTANT, EMPTY_FORMATTER, IDENTIFIER, METHOD, UNDEFINED
EMPTY_UNMODIFIABLEBASICLIST
EMPTY_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, wait
isFunction, isIdentifier
accept
isEmpty, isEmpty, isEmptyQuietly
public Codes clone() throws java.lang.CloneNotSupportedException
Cloneable
clone
in interface Code
clone
in interface Codes
clone
in class java.lang.Object
java.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 MutableCodes
public void set(int pos, Code arg)
set
in interface MutableCodes
public void insert(int pos, Code arg)
insert
in interface MutableCodes
public 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
Visitable
Visitor
.accept
in interface Visitable
visitor
- 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
FilteredVisitable
Visitor
.accept
in interface FilteredVisitable
visitor
- 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.Object
public ExpressionBuilder.Value toValue(ExpressionBuilder builder)
public ExpressionBuilder.Value toValue()
public void link(SymbolTable symbolTable)
public void link(SymbolTable symbolTable, boolean force)