Package io.quarkus.qute
Class TextNode
- java.lang.Object
-
- io.quarkus.qute.TextNode
-
- All Implemented Interfaces:
ResultNode,TemplateNode
- Direct Known Subclasses:
LineSeparatorNode
public class TextNode extends Object implements TemplateNode, ResultNode
Static text.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface io.quarkus.qute.TemplateNode
TemplateNode.Origin
-
-
Field Summary
-
Fields inherited from interface io.quarkus.qute.ResultNode
NOOP
-
-
Constructor Summary
Constructors Constructor Description TextNode(String value, TemplateNode.Origin origin)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description TemplateNode.OrigingetOrigin()StringgetValue()booleanisConstant()voidprocess(Consumer<String> consumer)CompletionStage<ResultNode>resolve(ResolutionContext context)StringtoString()-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface io.quarkus.qute.TemplateNode
getExpressions
-
-
-
-
Constructor Detail
-
TextNode
public TextNode(String value, TemplateNode.Origin origin)
-
-
Method Detail
-
resolve
public CompletionStage<ResultNode> resolve(ResolutionContext context)
- Specified by:
resolvein interfaceTemplateNode- Returns:
- the result node
-
getOrigin
public TemplateNode.Origin getOrigin()
- Specified by:
getOriginin interfaceTemplateNode- Returns:
- the origin of the node
-
isConstant
public boolean isConstant()
- Specified by:
isConstantin interfaceTemplateNode- Returns:
trueif the node represents a constant
-
getValue
public String getValue()
-
process
public void process(Consumer<String> consumer)
- Specified by:
processin interfaceResultNode
-
-