Package jadex.javaparser
Interface IParsedExpression
-
- All Known Implementing Classes:
ArgumentsNode,ArrayNode,BooleanNode,CastNode,CollectionNode,CompareNode,ConditionalNode,ConstantNode,ExpressionNode,MathNode,ParameterNode,ReflectNode,SelectionNode,SelectNode,TypeNode
public interface IParsedExpressionAn expression, that can be evaluated in a given state.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description java.lang.StringgetExpressionText()Get the expression text.java.util.Set<java.lang.String>getParameters()Get the parameters used in the expression.java.lang.Class<?>getStaticType()Get the static type.java.lang.ObjectgetValue(IValueFetcher fetcher)Evaluate the expression in the given state with respect to given parameters.
-
-
-
Method Detail
-
getExpressionText
java.lang.String getExpressionText()
Get the expression text.- Returns:
- The expression text.
-
getValue
java.lang.Object getValue(IValueFetcher fetcher)
Evaluate the expression in the given state with respect to given parameters.- Parameters:
params- The parameters (string, value pairs), if any.- Returns:
- The value of the term.
-
getStaticType
java.lang.Class<?> getStaticType()
Get the static type. If no information about the return type of an expression is available (e.g. because it depends on the evaluation context), the static type is null.- Returns:
- The static type.
-
getParameters
java.util.Set<java.lang.String> getParameters()
Get the parameters used in the expression.
-
-