public abstract static class DefaultCodeBuilder.BaseCode extends java.lang.Object implements Code
Code.Callable, Code.Constant, Code.EmptyFormatter, Code.Identifier, Code.Method
CALLABLE, CODES, CONSTANT, EMPTY_FORMATTER, IDENTIFIER, METHOD, UNDEFINED
Constructor and Description |
---|
BaseCode() |
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 . |
Code |
clone()
Creates a copy of the object.
|
int |
code() |
void |
link() |
void |
link(SymbolTable symbolTable) |
void |
link(SymbolTable symbolTable,
boolean force) |
void |
replace(Code target,
Code replacement) |
ExpressionBuilder.Value |
toValue() |
ExpressionBuilder.Value |
toValue(ExpressionBuilder builder) |
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
isFunction, isIdentifier, toString
accept
cloneQuietly, cloneQuietly
public Code clone() throws java.lang.CloneNotSupportedException
Cloneable
clone
in interface Code
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 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 ExpressionBuilder.Value toValue(ExpressionBuilder builder)
public ExpressionBuilder.Value toValue()
public void link(SymbolTable symbolTable)
public void link(SymbolTable symbolTable, boolean force)