Package io.quarkus.qute
Interface SectionHelper.SectionResolutionContext
-
- Enclosing interface:
- SectionHelper
public static interface SectionHelper.SectionResolutionContextA new instance is created for every invocation ofSectionHelper.resolve(SectionResolutionContext).
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default CompletionStage<Object>evaluate(Expression expression)Evaluates a single expression.CompletionStage<Map<String,Object>>evaluate(Map<String,Expression> expressions)Evaluates the given expressions and returns the map of expression keys to evaluated values.default CompletionStage<ResultNode>execute()Execute the main block with the current resolution context.default CompletionStage<ResultNode>execute(ResolutionContext context)Execute the main block with the specifiedResolutionContext.CompletionStage<ResultNode>execute(SectionBlock block, ResolutionContext context)Execute the specified block with the specifiedResolutionContext.Map<String,Object>getParameters()Parameters for a specific resolution.ResolutionContextnewResolutionContext(Object data, Map<String,SectionBlock> extendingBlocks)ResolutionContextresolutionContext()
-
-
-
Method Detail
-
evaluate
CompletionStage<Map<String,Object>> evaluate(Map<String,Expression> expressions)
Evaluates the given expressions and returns the map of expression keys to evaluated values.- Parameters:
expressions-- Returns:
- the map of expression keys to evaluated values
- See Also:
evaluate(Expression)
-
evaluate
default CompletionStage<Object> evaluate(Expression expression)
Evaluates a single expression.- Parameters:
expression-- Returns:
- the evaluated value
- See Also:
evaluate(Map)
-
resolutionContext
ResolutionContext resolutionContext()
- Returns:
- the current resolution context
-
newResolutionContext
ResolutionContext newResolutionContext(Object data, Map<String,SectionBlock> extendingBlocks)
- Parameters:
data-extendingBlocks-- Returns:
- a new resolution context
-
execute
default CompletionStage<ResultNode> execute()
Execute the main block with the current resolution context.- Returns:
- the result node
-
execute
default CompletionStage<ResultNode> execute(ResolutionContext context)
Execute the main block with the specifiedResolutionContext.- Parameters:
context-- Returns:
- the result node
-
execute
CompletionStage<ResultNode> execute(SectionBlock block, ResolutionContext context)
Execute the specified block with the specifiedResolutionContext.- Parameters:
block-context-- Returns:
- the result node
-
-