Fork me on GitHub

ForNode

In package com.mitchellbosecke.pebble.node

public class ForNode extends AbstractRenderableNode

Represents a "for" loop within the template.

Constructors

public ForNode(int lineNumber, String variableName, Expression<?> iterableExpression, BodyNode body, BodyNode elseBody)
Parameters:

Methods

public void render(PebbleTemplateImpl self, Writer writer, EvaluationContextImpl context)
Parameters:
public void accept(NodeVisitor visitor)
Parameters:
public String getIterationVariable()
Parameters:
  • No parameters
public Expression<?> getIterable()
Parameters:
  • No parameters
public BodyNode getBody()
Parameters:
  • No parameters
public BodyNode getElseBody()
Parameters:
  • No parameters