org.matheclipse.parser.client.operator
Class InfixOperator
- java.lang.Object
-
- org.matheclipse.parser.client.operator.Operator
-
- org.matheclipse.parser.client.operator.InfixOperator
-
- Direct Known Subclasses:
- DivideOperator, SubtractOperator
public class InfixOperator extends Operator
-
-
Field Summary
Fields Modifier and Type Field and Description static intLEFT_ASSOCIATIVEstatic intNONEstatic intRIGHT_ASSOCIATIVE
-
Constructor Summary
Constructors Constructor and Description InfixOperator(java.lang.String oper, java.lang.String functionName, int precedence, int grouping)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description ASTNodecreateFunction(IParserFactory factory, ASTNode lhs, ASTNode rhs)intgetGrouping()Return the grouping of the Infix-Operator (i.e.-
Methods inherited from class org.matheclipse.parser.client.operator.Operator
equals, getFunctionName, getOperatorString, getPrecedence, hashCode, toString
-
-
-
-
Field Detail
-
NONE
public static final int NONE
- See Also:
- Constant Field Values
-
RIGHT_ASSOCIATIVE
public static final int RIGHT_ASSOCIATIVE
- See Also:
- Constant Field Values
-
LEFT_ASSOCIATIVE
public static final int LEFT_ASSOCIATIVE
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
InfixOperator
public InfixOperator(java.lang.String oper, java.lang.String functionName, int precedence, int grouping)
-
-
Method Detail
-
getGrouping
public int getGrouping()
Return the grouping of the Infix-Operator (i.e. NONE,LEFT_ASSOCIATIVE, RIGHT_ASSOCIATIVE)- Returns:
-
createFunction
public ASTNode createFunction(IParserFactory factory, ASTNode lhs, ASTNode rhs)
-
-
DMelt 3.0 © DataMelt by jWork.ORG