Package io.pebbletemplates.pebble.node
Class SetNode
- java.lang.Object
-
- io.pebbletemplates.pebble.node.AbstractRenderableNode
-
- io.pebbletemplates.pebble.node.SetNode
-
- All Implemented Interfaces:
Node
,RenderableNode
public class SetNode extends AbstractRenderableNode
-
-
Field Summary
Fields Modifier and Type Field Description private java.lang.String
name
private Expression<?>
value
-
Constructor Summary
Constructors Constructor Description SetNode(int lineNumber, java.lang.String name, Expression<?> value)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
accept(NodeVisitor visitor)
java.lang.String
getName()
Expression<?>
getValue()
void
render(PebbleTemplateImpl self, java.io.Writer writer, EvaluationContextImpl context)
-
Methods inherited from class io.pebbletemplates.pebble.node.AbstractRenderableNode
getLineNumber, setLineNumber
-
-
-
-
Field Detail
-
name
private final java.lang.String name
-
value
private final Expression<?> value
-
-
Constructor Detail
-
SetNode
public SetNode(int lineNumber, java.lang.String name, Expression<?> value)
-
-
Method Detail
-
render
public void render(PebbleTemplateImpl self, java.io.Writer writer, EvaluationContextImpl context)
- Specified by:
render
in interfaceRenderableNode
- Specified by:
render
in classAbstractRenderableNode
-
accept
public void accept(NodeVisitor visitor)
- Specified by:
accept
in interfaceNode
- Specified by:
accept
in classAbstractRenderableNode
-
getValue
public Expression<?> getValue()
-
getName
public java.lang.String getName()
-
-