Package picasso.parser.tokens.operations
Class PlusToken
- java.lang.Object
-
- picasso.parser.tokens.Token
-
- picasso.parser.tokens.chars.CharToken
-
- picasso.parser.tokens.operations.PlusToken
-
- All Implemented Interfaces:
OperationInterface
public class PlusToken extends CharToken implements OperationInterface
Represents the plus sign token
-
-
Field Summary
-
Fields inherited from class picasso.parser.tokens.Token
ADD_OR_SUBTRACT, COMMA, CONSTANT, EXPONENT, GROUPING, MULTIPLY_OR_DIVIDE, precedence, UNARY
-
-
Constructor Summary
Constructors Constructor Description PlusToken()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
isLeftAssociative()
Determines if the operation is left-associative.-
Methods inherited from class picasso.parser.tokens.chars.CharToken
equals, isConstant, isFunction, toString, value
-
Methods inherited from class picasso.parser.tokens.Token
getPrecedence, isOperand
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface picasso.parser.tokens.operations.OperationInterface
getPrecedence
-
-
-
-
Method Detail
-
isLeftAssociative
public boolean isLeftAssociative()
Description copied from interface:OperationInterface
Determines if the operation is left-associative.- Specified by:
isLeftAssociative
in interfaceOperationInterface
- Returns:
- true if the operation is left-associative
-
-