|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.nfunk.jep.Operator
public class Operator
A class containing information about an operator.
OperatorSet
Constructor Summary | |
---|---|
Operator(java.lang.String name,
PostfixMathCommandI pfmc)
construct a new operator. |
|
Operator(java.lang.String name,
java.lang.String symbol,
PostfixMathCommandI pfmc)
construct a new operator, with a different name and symbol |
Method Summary | |
---|---|
java.lang.String |
getName()
returns a unique name definig this operator. |
PostfixMathCommandI |
getPFMC()
|
java.lang.String |
getSymbol()
returns the symbol used by this operator. |
void |
setPFMC(PostfixMathCommandI pfmc)
|
java.lang.String |
toString()
returns a verbose representation of the operator. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public Operator(java.lang.String name, PostfixMathCommandI pfmc)
name
- printable name of operatorpfmc
- postfix math command for opperatorpublic Operator(java.lang.String name, java.lang.String symbol, PostfixMathCommandI pfmc)
name
- name of operator, must be unique, used when describing operatorsymbol
- printable name of operator, used for printing equationspfmc
- postfix math command for opperatorMethod Detail |
---|
public final java.lang.String getSymbol()
public final java.lang.String getName()
public final PostfixMathCommandI getPFMC()
public final void setPFMC(PostfixMathCommandI pfmc)
public java.lang.String toString()
toString
in class java.lang.Object
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |