java.lang.Object
io.quarkus.qute.ExpressionNode
- All Implemented Interfaces:
TemplateNode
This node holds a single expression such as
foo.bar.-
Nested Class Summary
Nested classes/interfaces inherited from interface io.quarkus.qute.TemplateNode
TemplateNode.Kind, TemplateNode.Origin -
Method Summary
Modifier and TypeMethodDescriptionbooleanConstant means a static text or a literal output expression.kind()Returns the kind of this node.resolve(ResolutionContext context) toString()Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface io.quarkus.qute.TemplateNode
asParamDeclaration, asSection, asText, getParameterDeclarations, isExpression, isSection, isText
-
Method Details
-
resolve
- Specified by:
resolvein interfaceTemplateNode- Parameters:
context-- Returns:
- the result node
-
getOrigin
- Specified by:
getOriginin interfaceTemplateNode- Returns:
- the origin of the node
-
isConstant
public boolean isConstant()Description copied from interface:TemplateNodeConstant means a static text or a literal output expression.- Specified by:
isConstantin interfaceTemplateNode- Returns:
trueif the node represents a constant- See Also:
-
getExpressions
- Specified by:
getExpressionsin interfaceTemplateNode- Returns:
- a list of expressions
-
kind
Description copied from interface:TemplateNodeReturns the kind of this node.Note that comments and line separators are never preserved in the parsed template tree.
- Specified by:
kindin interfaceTemplateNode- Returns:
- the kind
-
asExpression
- Specified by:
asExpressionin interfaceTemplateNode
-
toString
-