Package io.quarkus.qute
Interface EvalContext
public interface EvalContext
Evaluation context of a specific part of an expression.
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionevaluate(Expression expression) Evaluate the given expression using the relevantResolutionContext.Parse and evaluate the given expression using the relevantResolutionContextgetAttribute(String key) getBase()The base is always null for namespace resolvers.getName()A virtual method may accept any number of parameters.
-
Method Details
-
getBase
Object getBase()The base is always null for namespace resolvers.- Returns:
- the base object or null
-
getName
String getName()- Returns:
- the name of the virtual property/function
-
getParams
List<Expression> getParams()A virtual method may accept any number of parameters.E.g. for a virtual method
foo(name.length,age)the list of two expressions is returned, one forname.lengthand the other one forage. It is up to the consumer to evaluate the params if needed.- Returns:
- the list of parameters, is never
null
-
evaluate
Parse and evaluate the given expression using the relevantResolutionContext- Parameters:
expression-- Returns:
- the result
-
evaluate
Evaluate the given expression using the relevantResolutionContext.- Parameters:
expression-- Returns:
- the result
-
getAttribute
- Parameters:
key-- Returns:
- the attribute or null
- See Also:
-