Constructor and Description |
---|
TFunctionImpl(java.lang.String functionName,
java.util.List<TFunctionArgument> args,
boolean unquoted,
TFunctionType functionType) |
Modifier and Type | Method and Description |
---|---|
void |
addBody(StringLocated s) |
boolean |
canCover(int nbArg,
java.util.Set<java.lang.String> namedArguments) |
boolean |
doesContainReturn() |
void |
executeProcedure(TContext context,
TMemory memory,
LineLocation location,
java.lang.String s) |
void |
executeProcedureInternal(TContext context,
TMemory memory,
java.util.List<TValue> args,
java.util.Map<java.lang.String,TValue> named) |
TValue |
executeReturnFunction(TContext context,
TMemory memory,
LineLocation location,
java.util.List<TValue> args,
java.util.Map<java.lang.String,TValue> named) |
void |
finalizeEnddefinelong() |
TFunctionType |
getFunctionType() |
TFunctionSignature |
getSignature() |
boolean |
hasBody() |
boolean |
isUnquoted() |
void |
setLegacyDefinition(java.lang.String legacyDefinition) |
java.lang.String |
toString() |
public TFunctionImpl(java.lang.String functionName, java.util.List<TFunctionArgument> args, boolean unquoted, TFunctionType functionType)
public boolean canCover(int nbArg, java.util.Set<java.lang.String> namedArguments)
public java.lang.String toString()
toString
in class java.lang.Object
public void addBody(StringLocated s) throws EaterExceptionLocated
EaterExceptionLocated
public void executeProcedure(TContext context, TMemory memory, LineLocation location, java.lang.String s) throws EaterException, EaterExceptionLocated
executeProcedure
in interface TFunction
EaterException
EaterExceptionLocated
public void executeProcedureInternal(TContext context, TMemory memory, java.util.List<TValue> args, java.util.Map<java.lang.String,TValue> named) throws EaterException, EaterExceptionLocated
executeProcedureInternal
in interface TFunction
EaterException
EaterExceptionLocated
public TValue executeReturnFunction(TContext context, TMemory memory, LineLocation location, java.util.List<TValue> args, java.util.Map<java.lang.String,TValue> named) throws EaterException, EaterExceptionLocated
executeReturnFunction
in interface TFunction
EaterException
EaterExceptionLocated
public final TFunctionType getFunctionType()
getFunctionType
in interface TFunction
public final TFunctionSignature getSignature()
getSignature
in interface TFunction
public void setLegacyDefinition(java.lang.String legacyDefinition)
public boolean isUnquoted()
isUnquoted
in interface TFunction
public boolean hasBody()
public void finalizeEnddefinelong()
public final boolean doesContainReturn()