Fork me on GitHub

BinaryExpression

In package com.mitchellbosecke.pebble.node.expression

public abstract class BinaryExpression<T> extends Object implements Expression

Constructors

public BinaryExpression()
Parameters:
  • No parameters
public BinaryExpression(Expression<?> left, Expression<?> right)

Sets the left and right expressions. This expression is assumed to be defined on the same line as the left expression.

Parameters:

Methods

public void setLeft(Expression<?> left)
Parameters:
public void setRight(Expression<?> right)
Parameters:
public Expression<?> getLeftExpression()
Parameters:
  • No parameters
public Expression<?> getRightExpression()
Parameters:
  • No parameters
public void accept(NodeVisitor visitor)
Parameters:
public void setLineNumber(int lineNumber)

Sets the line number on which the expression is defined on.

Parameters:
  • int lineNumber

    the line number on which the expression is defined on.

public int getLineNumber()
Parameters:
  • No parameters