|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.ObjectFEJDMath.Token
Represents a token of the string
Field Summary | |
static int |
addition
Addition constant |
static int |
division
Division constant |
static int |
empty
Empty constant |
static int |
func
Function constant |
static int |
multiplication
Multiplication constant |
private java.lang.String |
name
The name of the function represented by the token |
static int |
numeric
Numeric constant |
static int |
pdroit
Right parenthesis constant |
static int |
pgauche
Left parenthesis constant |
static int |
soustraction
Substration constant |
private java.lang.String[] |
supportedMFct
List of the supported math functions in upper case |
private int |
type
The type of the token (one of the constant) |
private double |
value
The numerical value of the token |
Constructor Summary | |
Token(java.lang.String s)
|
Method Summary | |
java.lang.Object |
clone()
|
java.lang.String |
getName()
Returns the name of the math function |
int |
getType()
Returns the type of the token |
double |
getValue()
Returns the value of the token |
private boolean |
isMFctSupported(java.lang.String s)
Checks of the math function s is supported |
private void |
setToken(java.lang.String s)
Sets the token to its value |
void |
setType(int type)
Sets the type of the token |
void |
setValue(double value)
Sets the value of the token |
Methods inherited from class java.lang.Object |
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final int empty
public static final int func
public static final int numeric
public static final int addition
public static final int multiplication
public static final int soustraction
public static final int division
public static final int pgauche
public static final int pdroit
private java.lang.String[] supportedMFct
private int type
private double value
private java.lang.String name
Constructor Detail |
public Token(java.lang.String s)
Method Detail |
public int getType()
public void setType(int type)
public double getValue()
public void setValue(double value)
public java.lang.String getName()
private boolean isMFctSupported(java.lang.String s)
private void setToken(java.lang.String s)
public java.lang.Object clone()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |