Package parser
Class PowerOperator
java.lang.Object
parser.Operator
parser.BinaryOperator
parser.PowerOperator
- All Implemented Interfaces:
Validatable
public final class PowerOperator extends BinaryOperator
- Author:
- GBEMIRO
-
Field Summary
Fields inherited from class parser.Operator
AND, ASSIGN, AT, CLOSE_CIRC_BRAC, CLOSE_SQUARE_BRAC, COLON, COMBINATION, COMMA, CONST, CUBE, CUBE_ROOT, DIVIDE, EN_DASH, EQUALS, EXIT, FACTORIAL, GREATER_OR_EQUALS, GREATER_THAN, INVERSE, LESS_OR_EQUALS, LESS_THAN, MINUS, MULTIPLY, name, OPEN_CIRC_BRAC, OPEN_SQUARE_BRAC, operators, OR, PERMUTATION, PLUS, POWER, REMAINDER, ROOT, SEMI_COLON, SPACE, SQUARE, STORE -
Constructor Summary
Constructors Constructor Description PowerOperator(int index, java.util.ArrayList<java.lang.String> scan)Creates an object of class PowerOperator -
Method Summary
Modifier and Type Method Description static voidassignCompoundTokens(java.util.ArrayList<java.lang.String> scan)Methods inherited from class parser.Operator
getName, getPrecedence, isAssignmentOperator, isAtOperator, isBinaryOperator, isBracket, isClosingBrace, isClosingBracket, isColon, isComma, isConstantStoreCommand, isCube, isCubeRoot, isEqualsOperator, isExitCommand, isFactorial, isInverse, isLogicOperator, isMulOrDiv, isMulOrDivOrRemOrPermOrCombOrPow, isOpeningBrace, isOpeningBracket, isOperatorString, isPermOrComb, isPlusOrMinus, isPower, isRemainder, isSemiColon, isSquare, isSquareRoot, isStoreCommand, isUnaryPostOperator, isUnaryPreOperator, setName, validateAll
-
Constructor Details
-
PowerOperator
public PowerOperator(int index, java.util.ArrayList<java.lang.String> scan)Creates an object of class PowerOperator- Parameters:
index- the index of this object in its parent Function object's scanner.scan- the Function object in which this PowerOperator exists.
-
-
Method Details
-
assignCompoundTokens
public static void assignCompoundTokens(java.util.ArrayList<java.lang.String> scan)- Parameters:
scan- the ArrayList object that is the scanner and so contains the PowerOperator object.
-