public class BinaryOperatorImpl extends Object implements BinaryOperator
| Constructor and Description |
|---|
BinaryOperatorImpl(String symbol,
int precedence,
Class<? extends BinaryExpression<?>> nodeClass,
Associativity associativity)
This constuctor left for backward compatibility with custom extensions
|
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
|
| Modifier and Type | Method and Description |
|---|---|
Associativity |
getAssociativity() |
BinaryExpression<?> |
getInstance() |
int |
getPrecedence() |
String |
getSymbol() |
BinaryOperatorType |
getType() |
public BinaryOperatorImpl(String symbol, int precedence, Class<? extends BinaryExpression<?>> nodeClass, Associativity associativity)
public BinaryOperatorImpl(String symbol, int precedence, java.util.function.Supplier<? extends BinaryExpression<?>> nodeSupplier, BinaryOperatorType type, Associativity associativity)
public int getPrecedence()
getPrecedence in interface BinaryOperatorpublic String getSymbol()
getSymbol in interface BinaryOperatorpublic BinaryExpression<?> getInstance()
getInstance in interface BinaryOperatorpublic BinaryOperatorType getType()
getType in interface BinaryOperatorpublic Associativity getAssociativity()
getAssociativity in interface BinaryOperatorCopyright © 2020. All rights reserved.