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 BodyNodebodyprivate booleanhasWarnedAboutNonExistingExecutorServiceIf 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.Loggerlogger
-
Constructor Summary
Constructors Constructor Description ParallelNode(int lineNumber, BodyNode body)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaccept(NodeVisitor visitor)BodyNodegetBody()voidrender(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:
renderin interfaceRenderableNode- Specified by:
renderin classAbstractRenderableNode- Throws:
java.io.IOException
-
accept
public void accept(NodeVisitor visitor)
- Specified by:
acceptin interfaceNode- Specified by:
acceptin classAbstractRenderableNode
-
getBody
public BodyNode getBody()
-
-