public class DefaultCodeBuilder.BaseCaller extends DefaultCodeBuilder.BaseCode implements Code.Callable, DefaultCodeBuilder.RecursionControlSupport
Code.Callable, Code.Constant, Code.EmptyFormatter, Code.Identifier, Code.MethodBINARY_OPERATOR, FUNCTION, UNARY_OPERATORCALLABLE, CODES, CONSTANT, EMPTY_FORMATTER, IDENTIFIER, METHOD, UNDEFINED| Constructor and Description |
|---|
BaseCaller(java.lang.String name,
int type,
Codes args) |
| Modifier and Type | Method and Description |
|---|---|
void |
accept(Visitor visitor,
java.util.function.Predicate<FilteredVisitable> exclude)
Provides each value of this container to the provided
Visitor. |
java.lang.Object |
call(Interpreter interpreter,
java.lang.Object[] args) |
Code |
clone()
Creates a copy of the object.
|
int |
code() |
boolean |
enterCode(int max) |
void |
exitCode() |
Function |
function() |
Function |
function(Function function) |
java.lang.String |
name() |
Codes |
parameters() |
void |
replace(Code target,
Code replacement) |
void |
resetRecursionState() |
java.lang.String |
toString() |
java.lang.String |
toString(Formatter<Code> formatter) |
ExpressionBuilder.Value |
toValue(ExpressionBuilder builder) |
int |
type() |
accept, link, link, link, toValueequals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitname, parametersisFunction, isIdentifier, link, link, link, toValueacceptcloneQuietly, cloneQuietlypublic BaseCaller(java.lang.String name,
int type,
Codes args)
public Code clone() throws java.lang.CloneNotSupportedException
Cloneableclone in interface Codeclone in class DefaultCodeBuilder.BaseCodejava.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 int code()
code in interface Codecode in class DefaultCodeBuilder.BaseCodepublic void replace(Code target, Code replacement)
replace in interface Codereplace in class DefaultCodeBuilder.BaseCodepublic java.lang.Object call(Interpreter interpreter, java.lang.Object[] args) throws java.lang.Exception
call in interface Code.Callablejava.lang.Exceptionpublic java.lang.String name()
name in interface Code.Callablepublic Function function()
function in interface Code.Callablepublic Function function(Function function)
function in interface Code.Callablepublic Codes parameters()
parameters in interface Code.Callablepublic int type()
type in interface Code.Callablepublic void accept(Visitor visitor, java.util.function.Predicate<FilteredVisitable> exclude) throws BaseException
FilteredVisitableVisitor.accept in interface FilteredVisitableaccept in class DefaultCodeBuilder.BaseCodevisitor - the visitor to apply to each value.BaseException - if there is an error while performing the visitpublic ExpressionBuilder.Value toValue(ExpressionBuilder builder)
toValue in interface CodetoValue in class DefaultCodeBuilder.BaseCodepublic java.lang.String toString()
toString in class java.lang.Objectpublic boolean enterCode(int max)
enterCode in interface DefaultCodeBuilder.RecursionControlSupportpublic void exitCode()
exitCode in interface DefaultCodeBuilder.RecursionControlSupportpublic void resetRecursionState()
resetRecursionState in interface DefaultCodeBuilder.RecursionControlSupport