JComponentPack 1.5.0

com.zfqjava.formula
Class AbstractOperator

java.lang.Object
  extended by 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)
           
 
Method Summary
 int getPrecedence()
          Returns the precedence of this operator.
 String getSymbol()
          Returns the symbol.
 boolean isRightAssociative()
          Determins whether the operator is right associative.
 boolean isUnary()
          Determins whether the operator is unary or binary.
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface com.zfqjava.formula.Operator
evaluate, evaluate
 

Constructor Detail

AbstractOperator

protected AbstractOperator(String symbol,
                           int precedence,
                           boolean unary,
                           boolean rightAssociative)
Method Detail

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

JComponentPack 1.5.0

Send your Feedback
JComponentPack 1.5.0
Copyright © 2001-2007 Extreme Component, Inc. All rights reserved.