public class InfixOperator extends Operator
Modifier and Type | Field and Description |
---|---|
static int |
LEFT_ASSOCIATIVE |
static int |
NONE |
static int |
RIGHT_ASSOCIATIVE |
fFunctionName, fOperatorString, fPrecedence
Constructor and Description |
---|
InfixOperator(java.lang.String oper,
java.lang.String functionName,
int precedence,
int grouping) |
Modifier and Type | Method and Description |
---|---|
ASTNode |
createFunction(IParserFactory factory,
ASTNode lhs,
ASTNode rhs) |
int |
getGrouping()
Return the grouping of the Infix-Operator (i.e.
|
equals, getFunctionName, getOperatorString, getPrecedence, hashCode, toString
public static final int NONE
public static final int RIGHT_ASSOCIATIVE
public static final int LEFT_ASSOCIATIVE
public InfixOperator(java.lang.String oper, java.lang.String functionName, int precedence, int grouping)
public int getGrouping()
public ASTNode createFunction(IParserFactory factory, ASTNode lhs, ASTNode rhs)