Package net.sourceforge.plantuml.tim
Class TFunctionImpl
- java.lang.Object
-
- net.sourceforge.plantuml.tim.TFunctionImpl
-
-
Constructor Summary
Constructors Constructor Description TFunctionImpl(java.lang.String functionName, java.util.List<TFunctionArgument> args, boolean unquoted, TFunctionType functionType)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddBody(StringLocated s)booleancanCover(int nbArg, java.util.Set<java.lang.String> namedArguments)booleandoesContainReturn()voidexecuteProcedure(TContext context, TMemory memory, LineLocation location, java.lang.String s)voidexecuteProcedureInternal(TContext context, TMemory memory, java.util.List<TValue> args, java.util.Map<java.lang.String,TValue> named)TValueexecuteReturnFunction(TContext context, TMemory memory, LineLocation location, java.util.List<TValue> args, java.util.Map<java.lang.String,TValue> named)voidfinalizeEnddefinelong()TFunctionTypegetFunctionType()TFunctionSignaturegetSignature()booleanhasBody()booleanisUnquoted()voidsetLegacyDefinition(java.lang.String legacyDefinition)java.lang.StringtoString()
-
-
-
Constructor Detail
-
TFunctionImpl
public TFunctionImpl(java.lang.String functionName, java.util.List<TFunctionArgument> args, boolean unquoted, TFunctionType functionType)
-
-
Method Detail
-
canCover
public boolean canCover(int nbArg, java.util.Set<java.lang.String> namedArguments)
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
addBody
public void addBody(StringLocated s) throws EaterExceptionLocated
- Throws:
EaterExceptionLocated
-
executeProcedure
public void executeProcedure(TContext context, TMemory memory, LineLocation location, java.lang.String s) throws EaterException, EaterExceptionLocated
- Specified by:
executeProcedurein interfaceTFunction- Throws:
EaterExceptionEaterExceptionLocated
-
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:
executeProcedureInternalin interfaceTFunction- Throws:
EaterExceptionEaterExceptionLocated
-
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:
executeReturnFunctionin interfaceTFunction- Throws:
EaterExceptionEaterExceptionLocated
-
getFunctionType
public final TFunctionType getFunctionType()
- Specified by:
getFunctionTypein interfaceTFunction
-
getSignature
public final TFunctionSignature getSignature()
- Specified by:
getSignaturein interfaceTFunction
-
setLegacyDefinition
public void setLegacyDefinition(java.lang.String legacyDefinition)
-
isUnquoted
public boolean isUnquoted()
- Specified by:
isUnquotedin interfaceTFunction
-
hasBody
public boolean hasBody()
-
finalizeEnddefinelong
public void finalizeEnddefinelong()
-
doesContainReturn
public final boolean doesContainReturn()
-
-