Package io.quarkus.qute
Interface SectionHelper.SectionResolutionContext
- Enclosing interface:
- SectionHelper
public static interface SectionHelper.SectionResolutionContext
A new instance is created for every invocation of
SectionHelper.resolve(SectionResolutionContext).-
Method Summary
Modifier and TypeMethodDescriptiondefault CompletionStage<Object>evaluate(Expression expression) Evaluates a single expression.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.execute(SectionBlock block, ResolutionContext context) Execute the specified block with the specifiedResolutionContext.Parameters for a specific resolution.newResolutionContext(Object data, Map<String, SectionBlock> extendingBlocks)
-
Method Details
-
evaluate
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
Evaluates a single expression.- Parameters:
expression-- Returns:
- the evaluated value
- See Also:
-
resolutionContext
ResolutionContext resolutionContext()- Returns:
- the current resolution context
-
newResolutionContext
- Parameters:
data-extendingBlocks-- Returns:
- a new resolution context
-
execute
Execute the main block with the current resolution context.- Returns:
- the result node
-
execute
Execute the main block with the specifiedResolutionContext.- Parameters:
context-- Returns:
- the result node
-
execute
Execute the specified block with the specifiedResolutionContext.- Parameters:
block-context-- Returns:
- the result node
-
getParameters
Parameters for a specific resolution.- Returns:
- the immutable map of parameters, never
null
-