Package jadex.bdiv3x.runtime
Class RExpressionbase.RExpression
- java.lang.Object
-
- jadex.bdiv3.runtime.impl.RElement
-
- jadex.bdiv3x.runtime.RExpressionbase.RExpression
-
- All Implemented Interfaces:
IElement
,IExpression
- Enclosing class:
- RExpressionbase
public class RExpressionbase.RExpression extends jadex.bdiv3.runtime.impl.RElement implements IExpression
-
-
Field Summary
Fields Modifier and Type Field Description protected UnparsedExpression
uexp
The unparsed expression.
-
Constructor Summary
Constructors Constructor Description RExpression(UnparsedExpression uexp, IInternalAccess agent)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.Object
execute()
Execute the query.java.lang.Object
execute(java.lang.String[] names, java.lang.Object[] values)
Execute the query using local parameters.java.lang.Object
execute(java.lang.String name, java.lang.Object value)
Execute the query using a local parameter.IParsedExpression
getParsedExpression()
java.lang.Object
getValue()
Evaluate the expression.-
Methods inherited from class jadex.bdiv3.runtime.impl.RElement
getAgent, getCapability, getCount, getId, getMCapability, getModelElement, getRuleSystem, setId, setModelElement, toString
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface jadex.bdiv3x.runtime.IElement
getCount, getId, getModelElement
-
-
-
-
Field Detail
-
uexp
protected UnparsedExpression uexp
The unparsed expression.
-
-
Constructor Detail
-
RExpression
public RExpression(UnparsedExpression uexp, IInternalAccess agent)
-
-
Method Detail
-
getValue
public java.lang.Object getValue()
Evaluate the expression.- Specified by:
getValue
in interfaceIExpression
- Returns:
- The value of the expression.
-
execute
public java.lang.Object execute()
Execute the query.- Specified by:
execute
in interfaceIExpression
- Returns:
- the result value of the query.
-
execute
public java.lang.Object execute(java.lang.String name, java.lang.Object value)
Execute the query using a local parameter.- Specified by:
execute
in interfaceIExpression
- Parameters:
name
- The name of the local parameter.value
- The value of the local parameter.- Returns:
- the result value of the query.
-
execute
public java.lang.Object execute(java.lang.String[] names, java.lang.Object[] values)
Execute the query using local parameters.- Specified by:
execute
in interfaceIExpression
- Parameters:
names
- The names of parameters.values
- The parameter values.- Returns:
- The return value.
-
getParsedExpression
public IParsedExpression getParsedExpression()
-
-