Package jadex.bdiv3x.runtime
Class ExpressionbaseWrapper
- java.lang.Object
-
- jadex.bdiv3x.runtime.ExpressionbaseWrapper
-
- All Implemented Interfaces:
IElement
,IExpressionbase
public class ExpressionbaseWrapper extends java.lang.Object implements IExpressionbase
Prepend capability prefix to expression names.
-
-
Field Summary
Fields Modifier and Type Field Description protected IExpressionbase
expressionbase
The flat expression base.protected java.lang.String
prefix
The full capability prefix.
-
Constructor Summary
Constructors Constructor Description ExpressionbaseWrapper(IExpressionbase expressionbase, java.lang.String prefix)
Create an expression base wrapper.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description IExpression
createExpression(java.lang.String expression)
Create a precompiled expression.long
getCount()
Get the element count.IExpression
getExpression(java.lang.String name)
Get a predefined expression.java.lang.String
getId()
Get the id.MElement
getModelElement()
Get the model element.
-
-
-
Field Detail
-
expressionbase
protected IExpressionbase expressionbase
The flat expression base.
-
prefix
protected java.lang.String prefix
The full capability prefix.
-
-
Constructor Detail
-
ExpressionbaseWrapper
public ExpressionbaseWrapper(IExpressionbase expressionbase, java.lang.String prefix)
Create an expression base wrapper.
-
-
Method Detail
-
getModelElement
public MElement getModelElement()
Get the model element.- Specified by:
getModelElement
in interfaceIElement
- Returns:
- The model element.
-
getExpression
public IExpression getExpression(java.lang.String name)
Get a predefined expression. Creates a new instance on every call.- Specified by:
getExpression
in interfaceIExpressionbase
- Parameters:
name
- The name of an expression defined in the ADF.- Returns:
- The expression object.
-
createExpression
public IExpression createExpression(java.lang.String expression)
Create a precompiled expression.- Specified by:
createExpression
in interfaceIExpressionbase
- Parameters:
expression
- The expression string.- Returns:
- The precompiled expression.
-
getCount
public long getCount()
Get the element count.
-
-