DivideOperator
, SubtractOperator
public class InfixOperator extends Operator
Modifier and Type | Field | Description |
---|---|---|
static int |
LEFT_ASSOCIATIVE |
|
static int |
NONE |
|
static int |
RIGHT_ASSOCIATIVE |
fFunctionName, fOperatorString, fPrecedence
Constructor | Description |
---|---|
InfixOperator(String oper,
String functionName,
int precedence,
int grouping) |
Instantiates a new infix operator.
|
Modifier and Type | Method | Description |
---|---|---|
ASTNode |
createFunction(IParserFactory factory,
ASTNode lhs,
ASTNode rhs) |
Creates the function.
|
int |
getGrouping() |
Return the grouping of the Infix-Operator (i.e.
|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
equals, getFunctionName, getOperatorString, getPrecedence, hashCode, toString
public static final int NONE
public static final int RIGHT_ASSOCIATIVE
public static final int LEFT_ASSOCIATIVE
public int getGrouping()
public ASTNode createFunction(IParserFactory factory, ASTNode lhs, ASTNode rhs)
factory
- the factorylhs
- the lhsrhs
- the rhsCopyright © 2018. All rights reserved.