Package io.pebbletemplates.pebble.node
Class ParallelNode
- java.lang.Object
-
- io.pebbletemplates.pebble.node.AbstractRenderableNode
-
- io.pebbletemplates.pebble.node.ParallelNode
-
- All Implemented Interfaces:
Node
,RenderableNode
public class ParallelNode extends AbstractRenderableNode
-
-
Field Summary
Fields Modifier and Type Field Description private BodyNode
body
private boolean
hasWarnedAboutNonExistingExecutorService
If the user is using the parallel tag but doesn't provide an ExecutorService we will warn them that this tag will essentially be ignored but it's important that we only warn them once because this tag may show up in a loop.private org.slf4j.Logger
logger
-
Constructor Summary
Constructors Constructor Description ParallelNode(int lineNumber, BodyNode body)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
accept(NodeVisitor visitor)
BodyNode
getBody()
void
render(PebbleTemplateImpl self, java.io.Writer writer, EvaluationContextImpl context)
-
Methods inherited from class io.pebbletemplates.pebble.node.AbstractRenderableNode
getLineNumber, setLineNumber
-
-
-
-
Field Detail
-
logger
private final org.slf4j.Logger logger
-
body
private final BodyNode body
-
hasWarnedAboutNonExistingExecutorService
private boolean hasWarnedAboutNonExistingExecutorService
If the user is using the parallel tag but doesn't provide an ExecutorService we will warn them that this tag will essentially be ignored but it's important that we only warn them once because this tag may show up in a loop.
-
-
Constructor Detail
-
ParallelNode
public ParallelNode(int lineNumber, BodyNode body)
-
-
Method Detail
-
render
public void render(PebbleTemplateImpl self, java.io.Writer writer, EvaluationContextImpl context) throws java.io.IOException
- Specified by:
render
in interfaceRenderableNode
- Specified by:
render
in classAbstractRenderableNode
- Throws:
java.io.IOException
-
accept
public void accept(NodeVisitor visitor)
- Specified by:
accept
in interfaceNode
- Specified by:
accept
in classAbstractRenderableNode
-
getBody
public BodyNode getBody()
-
-