Package jadex.rules.rulesystem.rules
Class MethodCall
- java.lang.Object
-
- jadex.rules.rulesystem.rules.MethodCall
-
public class MethodCall extends java.lang.ObjectDefinition of a Java method call.
-
-
Field Summary
Fields Modifier and Type Field Description protected java.util.ListdepvarsThe variables, from which the method call depends.protected java.lang.reflect.MethodmethodThe method.protected java.util.ListparamsourcesThe sources of the parameter values.protected OAVJavaTypetypeThe java object type.
-
Constructor Summary
Constructors Constructor Description MethodCall(OAVJavaType type, java.lang.reflect.Method method)Create a new Java method call.MethodCall(OAVJavaType type, java.lang.reflect.Method method, java.lang.Object[] paramsources)Create a new Java method call.MethodCall(OAVJavaType type, java.lang.reflect.Method method, java.util.List paramsources)Create a new Java method call.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddParameterSource(java.lang.Object paramsource)Add a new parameter source.java.lang.reflect.MethodgetMethod()Get the method.java.util.ListgetParameterSources()Get the parameter sources.OAVJavaTypegetType()Get the java object type.java.util.ListgetVariables()Get the variables.java.lang.StringtoString()Get the string representation.
-
-
-
Field Detail
-
type
protected OAVJavaType type
The java object type.
-
method
protected java.lang.reflect.Method method
The method.
-
paramsources
protected java.util.List paramsources
The sources of the parameter values.
-
depvars
protected java.util.List depvars
The variables, from which the method call depends.
-
-
Constructor Detail
-
MethodCall
public MethodCall(OAVJavaType type, java.lang.reflect.Method method)
Create a new Java method call.
-
MethodCall
public MethodCall(OAVJavaType type, java.lang.reflect.Method method, java.lang.Object[] paramsources)
Create a new Java method call.
-
MethodCall
public MethodCall(OAVJavaType type, java.lang.reflect.Method method, java.util.List paramsources)
Create a new Java method call.
-
-
Method Detail
-
getMethod
public java.lang.reflect.Method getMethod()
Get the method.- Returns:
- The method.
-
getType
public OAVJavaType getType()
Get the java object type.- Returns:
- The type.
-
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:
toStringin classjava.lang.Object- Returns:
- The string representation.
-
-