Package io.quarkus.qute
Interface ResolutionContext
public interface ResolutionContext
The resolution context holds the current context object.
-
Method Summary
Modifier and TypeMethodDescriptioncreateChild(Object data, Map<String, SectionBlock> extendingBlocks) Create a child resolution context.evaluate(Expression expression) Evaluate the expression.Parse and evaluate the expression.getAttribute(String key) UnlikegetExtendingBlock(String)this method never queries the parent context.getData()getExtendingBlock(String name) If no extending block exists for the given name then the parent context (if present) is queried.
-
Method Details
-
evaluate
Parse and evaluate the expression.- Parameters:
expression-- Returns:
- the result
-
evaluate
Evaluate the expression.- Parameters:
expression-- Returns:
- the result
-
createChild
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
If no extending block exists for the given name then the parent context (if present) is queried.- Parameters:
name-- Returns:
- the extending block for the specified name or
null
-
getCurrentExtendingBlock
UnlikegetExtendingBlock(String)this method never queries the parent context.- Parameters:
name-- Returns:
- the extending block for the specified name or
null
-
getAttribute
- Parameters:
key-- Returns:
- the attribute or null
- See Also:
-
getEvaluator
Evaluator getEvaluator()- Returns:
- the evaluator
-