Package jadex.rules.rulesystem.rules
Class FunctionCall
- java.lang.Object
-
- jadex.rules.rulesystem.rules.FunctionCall
-
public class FunctionCall extends java.lang.Object
Represents a function call.
-
-
Field Summary
Fields Modifier and Type Field Description protected IFunction
function
The function name.protected java.util.List
paramsources
The sources of the parameter values.
-
Constructor Summary
Constructors Constructor Description FunctionCall(IFunction function)
Create a new function call.FunctionCall(IFunction function, java.lang.Object[] paramsources)
Create a new function call.FunctionCall(IFunction function, java.util.List paramsources)
Create a new function call.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addParameterSource(java.lang.Object paramsource)
Add a new parameter source.IFunction
getFunction()
Get the function.java.util.List
getParameterSources()
Get the parameter sources.java.util.List
getVariables()
Get the variables.java.lang.String
toString()
Get the string representation.
-
-
-
Field Detail
-
function
protected IFunction function
The function name.
-
paramsources
protected java.util.List paramsources
The sources of the parameter values.
-
-
Constructor Detail
-
FunctionCall
public FunctionCall(IFunction function)
Create a new function call.
-
FunctionCall
public FunctionCall(IFunction function, java.util.List paramsources)
Create a new function call.
-
FunctionCall
public FunctionCall(IFunction function, java.lang.Object[] paramsources)
Create a new function call.
-
-
Method Detail
-
getFunction
public IFunction getFunction()
Get the function.- Returns:
- The function.
-
addParameterSource
public void addParameterSource(java.lang.Object paramsource)
Add a new parameter source. Can be - constant value - variable (value) - function call (value)
-
getParameterSources
public java.util.List getParameterSources()
Get the parameter sources.- Returns:
- The param sources.
-
getVariables
public java.util.List getVariables()
Get the variables.- Returns:
- The declared variables.
-
toString
public java.lang.String toString()
Get the string representation.- Overrides:
toString
in classjava.lang.Object
- Returns:
- The string representation.
-
-