Package io.quarkus.qute
Interface ResolutionContext
-
public interface ResolutionContext
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description ResolutionContextcreateChild(Object data, Map<String,SectionBlock> extendingBlocks)Create a child resolution context.CompletionStage<Object>evaluate(Expression expression)Evaluate the expression.CompletionStage<Object>evaluate(String expression)Parse and evaluate the expression.ObjectgetAttribute(String key)ObjectgetData()EvaluatorgetEvaluator()SectionBlockgetExtendingBlock(String name)ResolutionContextgetParent()
-
-
-
Method Detail
-
evaluate
CompletionStage<Object> evaluate(String expression)
Parse and evaluate the expression.- Parameters:
expression-- Returns:
- the result
-
evaluate
CompletionStage<Object> evaluate(Expression expression)
Evaluate the expression.- Parameters:
expression-- Returns:
- the result
-
createChild
ResolutionContext createChild(Object data, Map<String,SectionBlock> extendingBlocks)
Create a child resolution context.- Parameters:
data-extendingBlocks-- Returns:
- a new child resolution context
-
getData
Object getData()
- Returns:
- the data
-
getParent
ResolutionContext getParent()
- Returns:
- the parent context or null
-
getExtendingBlock
SectionBlock getExtendingBlock(String name)
- Parameters:
name-- Returns:
- the extending block for the specified name or null
-
getAttribute
Object getAttribute(String key)
- Parameters:
key-- Returns:
- the attribute or null
- See Also:
TemplateInstance.getAttribute(String)
-
getEvaluator
Evaluator getEvaluator()
- Returns:
- the evaluator
-
-