Fork me on GitHub

IfNode

In package com.mitchellbosecke.pebble.node

public class IfNode extends AbstractRenderableNode

Constructors

public IfNode(int lineNumber, List<Pair<Expression<?>, BodyNode>> conditionsWithBodies)
Parameters:
public IfNode(int lineNumber, List<Pair<Expression<?>, BodyNode>> conditionsWithBodies, BodyNode elseBody)
Parameters:

Methods

public void render(PebbleTemplateImpl self, Writer writer, EvaluationContextImpl context)
Parameters:
public void accept(NodeVisitor visitor)
Parameters:
public List<Pair<Expression<?>, BodyNode>> getConditionsWithBodies()
Parameters:
  • No parameters
public BodyNode getElseBody()
Parameters:
  • No parameters