JComponentPack 1.5.0

com.zfqjava.formula
Interface Operator

All Known Implementing Classes:
AbstractOperator

public interface Operator


Method Summary
 Object evaluate(Object arg)
          Returns the value for the specified argument.
 Object evaluate(Object arg1, Object arg2)
          Returns the value for the specified arguments.
 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.
 

Method Detail

getSymbol

String getSymbol()
Returns the symbol.


isUnary

boolean isUnary()
Determins whether the operator is unary or binary.


isRightAssociative

boolean isRightAssociative()
Determins whether the operator is right associative.


getPrecedence

int getPrecedence()
Returns the precedence of this operator.


evaluate

Object evaluate(Object arg)
Returns the value for the specified argument.

Parameters:
arg - the operator argument
Returns:
the object

evaluate

Object evaluate(Object arg1,
                Object arg2)
Returns the value for the specified arguments.

Parameters:
arg1 - the operator argument
arg2 - the operator argument
Returns:
the object

JComponentPack 1.5.0

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