Package io.micronaut.core.expressions
Interface ExpressionEvaluationContext
- All Superinterfaces:
AutoCloseable
- All Known Subinterfaces:
ConfigurableExpressionEvaluationContext
- All Known Implementing Classes:
DefaultExpressionEvaluationContext
Context that can be used by evaluated expression to obtain objects required
for evaluation process.
- Since:
- 4.0.0
- Author:
- Sergey Gavrilov
-
Method Summary
Modifier and TypeMethodDescriptiongetArgument
(int index) Provides method argument by index.<T> T
Provides bean by type.getProperty
(String name) Provides property by name.getThis()
Expressions that are evaluated in non-static contexts can reference "this".Methods inherited from interface java.lang.AutoCloseable
close
-
Method Details
-
getThis
Expressions that are evaluated in non-static contexts can reference "this".The object returned here is a reference to this.
- Returns:
- The object that represents this.
-
getArgument
Provides method argument by index.- Parameters:
index
- argument index- Returns:
- argument value
-
getBean
Provides bean by type.- Type Parameters:
T
- type of required bean- Parameters:
type
- required bean class object- Returns:
- bean instance
-
getProperty
Provides property by name.- Parameters:
name
- property name- Returns:
- property value or null
-