Fork me on GitHub

BinaryOperatorImpl

In package com.mitchellbosecke.pebble.operator

public class BinaryOperatorImpl extends Object implements BinaryOperator

Constructors

public BinaryOperatorImpl(String symbol, int precedence, Class<? extends BinaryExpression<?>> nodeClass, Associativity associativity)

This constuctor left for backward compatibility with custom extensions

Parameters:
public BinaryOperatorImpl(String symbol, int precedence, Supplier<? extends BinaryExpression<?>> nodeSupplier, BinaryOperatorType type, Associativity associativity)

This constuctor allows you to completely control the instantiation of the expression class

Parameters:

Methods

public int getPrecedence()
Parameters:
  • No parameters
public String getSymbol()
Parameters:
  • No parameters
public BinaryExpression<?> getInstance()
Parameters:
  • No parameters
public BinaryOperatorType getType()
Parameters:
  • No parameters
public Associativity getAssociativity()
Parameters:
  • No parameters