Package net.sourceforge.plantuml.tim
Class TFunctionImpl
java.lang.Object
net.sourceforge.plantuml.tim.TFunctionImpl
- All Implemented Interfaces:
TFunction
-
Constructor Summary
ConstructorsConstructorDescriptionTFunctionImpl
(java.lang.String functionName, java.util.List<TFunctionArgument> args, boolean unquoted, TFunctionType functionType) -
Method Summary
Modifier and TypeMethodDescriptionvoid
boolean
canCover
(int nbArg, java.util.Set<java.lang.String> namedArguments) final boolean
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) executeReturnFunction
(TContext context, TMemory memory, LineLocation location, java.util.List<TValue> args, java.util.Map<java.lang.String, TValue> named) void
final TFunctionType
final TFunctionSignature
boolean
hasBody()
boolean
void
setLegacyDefinition
(java.lang.String legacyDefinition) java.lang.String
toString()
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Constructor Details
-
TFunctionImpl
public TFunctionImpl(java.lang.String functionName, java.util.List<TFunctionArgument> args, boolean unquoted, TFunctionType functionType)
-
-
Method Details
-
canCover
public boolean canCover(int nbArg, java.util.Set<java.lang.String> namedArguments) -
toString
public java.lang.String toString()- Overrides:
toString
in classjava.lang.Object
-
addBody
- Throws:
EaterExceptionLocated
-
executeProcedure
public void executeProcedure(TContext context, TMemory memory, LineLocation location, java.lang.String s) throws EaterException, EaterExceptionLocated - Specified by:
executeProcedure
in interfaceTFunction
- Throws:
EaterException
EaterExceptionLocated
-
executeProcedureInternal
public void executeProcedureInternal(TContext context, TMemory memory, java.util.List<TValue> args, java.util.Map<java.lang.String, TValue> named) throws EaterException, EaterExceptionLocated- Specified by:
executeProcedureInternal
in interfaceTFunction
- Throws:
EaterException
EaterExceptionLocated
-
executeReturnFunction
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- Specified by:
executeReturnFunction
in interfaceTFunction
- Throws:
EaterException
EaterExceptionLocated
-
getFunctionType
- Specified by:
getFunctionType
in interfaceTFunction
-
getSignature
- Specified by:
getSignature
in interfaceTFunction
-
setLegacyDefinition
public void setLegacyDefinition(java.lang.String legacyDefinition) -
isUnquoted
public boolean isUnquoted()- Specified by:
isUnquoted
in interfaceTFunction
-
hasBody
public boolean hasBody() -
finalizeEnddefinelong
public void finalizeEnddefinelong() -
doesContainReturn
public final boolean doesContainReturn()
-