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 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()
-
-
-
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:
toString
in 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:
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
public final TFunctionType getFunctionType()
- Specified by:
getFunctionType
in interfaceTFunction
-
getSignature
public final TFunctionSignature 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()
-
-