com.zfqjava.formula
Class AbstractOperator
java.lang.Object
com.zfqjava.formula.AbstractOperator
- All Implemented Interfaces:
- Operator
public abstract class AbstractOperator
- extends Object
- implements Operator
|
Constructor Summary |
protected |
AbstractOperator(String symbol,
int precedence,
boolean unary,
boolean rightAssociative)
|
AbstractOperator
protected AbstractOperator(String symbol,
int precedence,
boolean unary,
boolean rightAssociative)
getSymbol
public String getSymbol()
- Description copied from interface:
Operator
- Returns the symbol.
- Specified by:
getSymbol in interface Operator
getPrecedence
public int getPrecedence()
- Description copied from interface:
Operator
- Returns the precedence of this operator.
- Specified by:
getPrecedence in interface Operator
isUnary
public boolean isUnary()
- Description copied from interface:
Operator
- Determins whether the operator is unary or binary.
- Specified by:
isUnary in interface Operator
isRightAssociative
public boolean isRightAssociative()
- Description copied from interface:
Operator
- Determins whether the operator is right associative.
- Specified by:
isRightAssociative in interface Operator
toString
public String toString()
- Overrides:
toString in class Object
Send your Feedback
JComponentPack 1.5.0
Copyright © 2001-2007 Extreme Component, Inc. All rights reserved.