Class BinaryOperatorImpl
java.lang.Object
io.pebbletemplates.pebble.operator.BinaryOperatorImpl
- All Implemented Interfaces:
BinaryOperator
-
Constructor Summary
ConstructorsConstructorDescriptionBinaryOperatorImpl(String symbol, int precedence, Class<? extends BinaryExpression<?>> nodeClass, Associativity associativity) This constuctor left for backward compatibility with custom extensionsBinaryOperatorImpl(String symbol, int precedence, java.util.function.Supplier<? extends BinaryExpression<?>> nodeSupplier, BinaryOperatorType type, Associativity associativity) This constuctor allows you to completely control the instantiation of the expression class -
Method Summary
-
Constructor Details
-
BinaryOperatorImpl
public BinaryOperatorImpl(String symbol, int precedence, Class<? extends BinaryExpression<?>> nodeClass, Associativity associativity) This constuctor left for backward compatibility with custom extensions -
BinaryOperatorImpl
public BinaryOperatorImpl(String symbol, int precedence, java.util.function.Supplier<? extends BinaryExpression<?>> nodeSupplier, BinaryOperatorType type, Associativity associativity) This constuctor allows you to completely control the instantiation of the expression class
-
-
Method Details
-
getPrecedence
public int getPrecedence()- Specified by:
getPrecedencein interfaceBinaryOperator
-
getSymbol
- Specified by:
getSymbolin interfaceBinaryOperator
-
createInstance
- Specified by:
createInstancein interfaceBinaryOperator
-
getType
- Specified by:
getTypein interfaceBinaryOperator
-
getAssociativity
- Specified by:
getAssociativityin interfaceBinaryOperator
-