Fork me on GitHub

TernaryExpression

In package com.mitchellbosecke.pebble.node.expression

public class TernaryExpression extends Object implements Expression

Constructors

public TernaryExpression(Expression<Boolean> expression1, Expression<?> expression2, Expression<?> expression3, int lineNumber, String filename)
Parameters:

Methods

public Object evaluate(PebbleTemplateImpl self, EvaluationContextImpl context)
Parameters:
public void accept(NodeVisitor visitor)
Parameters:
public Expression<Boolean> getExpression1()
Parameters:
  • No parameters
public Expression<?> getExpression2()
Parameters:
  • No parameters
public Expression<?> getExpression3()
Parameters:
  • No parameters
public void setExpression3(Expression<?> expression3)
Parameters:
public void setExpression2(Expression<?> expression2)
Parameters:
public int getLineNumber()
Parameters:
  • No parameters