com.barrybecker4.simulation.lsystem.model.expression
Class LOperatorsDefinition
java.lang.Object
com.barrybecker4.simulation.lsystem.model.expression.LOperatorsDefinition
- All Implemented Interfaces:
- com.barrybecker4.common.expression.OperatorsDefinition
public class LOperatorsDefinition
- extends java.lang.Object
- implements com.barrybecker4.common.expression.OperatorsDefinition
The expected binary operators in the text expression.
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
LOperatorsDefinition
public LOperatorsDefinition()
getOperatorPrecedence
public com.barrybecker4.common.expression.Operator[][] getOperatorPrecedence()
- Specified by:
getOperatorPrecedence in interface com.barrybecker4.common.expression.OperatorsDefinition
isOperator
public boolean isOperator(char ch)
- Specified by:
isOperator in interface com.barrybecker4.common.expression.OperatorsDefinition
- Returns:
- true if the specified character is an operator
isLastNodeOperator
public boolean isLastNodeOperator(java.util.List<com.barrybecker4.common.expression.TreeNode> nodes)
- Specified by:
isLastNodeOperator in interface com.barrybecker4.common.expression.OperatorsDefinition
- Returns:
- true if the last node is an operator or there were no previous nodes