public class DefaultCodeBuilder.BaseCaller extends DefaultCodeBuilder.BaseCode implements Code.Caller
Code.Caller.ArgumentsCode.Caller, Code.Constant, Code.IdentifierBINARY_OPERATOR, FUNCTION, UNARY_OPERATORCALLER, CONSTANT, IDENTIFIER, UNDEFINED| Constructor and Description |
|---|
BaseCaller(String name,
int type,
Code.Caller.Arguments args) |
| Modifier and Type | Method and Description |
|---|---|
void |
accept(Visitor visitor)
Provides each value of this container to the provided
Visitor. |
Code.Caller.Arguments |
args() |
Object |
call(Interpreter interpreter,
Object[] args) |
int |
code() |
Function |
function() |
Function |
function(Function function) |
String |
name() |
String |
toString() |
int |
type() |
public BaseCaller(String name, int type, Code.Caller.Arguments args)
public int code()
code in interface Codecode in class DefaultCodeBuilder.BaseCodepublic Object call(Interpreter interpreter, Object[] args) throws Exception
call in interface Code.CallerExceptionpublic String name()
name in interface Code.Callerpublic Function function()
function in interface Code.Callerpublic Function function(Function function)
function in interface Code.Callerpublic Code.Caller.Arguments args()
args in interface Code.Callerpublic int type()
type in interface Code.Callerpublic void accept(Visitor visitor) throws BaseException
VisitableVisitor.accept in interface Visitableaccept in class DefaultCodeBuilder.BaseCodevisitor - the visitor to apply to each value.BaseException - if there is an error while performing the visit