|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--Constant
Constante d'une expression arithmétique.
Field Summary | |
private double |
value
Valeur de la constante |
Constructor Summary | |
(package private) |
Constant(double value)
Construction d'une constante à partir d'une flottant |
Method Summary | |
double |
eval()
Évaluation sans environnement |
double |
eval(Environment e)
Évaluation avec environnement |
String |
toMathML()
Représentation MathML de l'expression |
String |
toString()
Représentation infixe de l'expression |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
private double value
Constructor Detail |
Constant(double value)
Method Detail |
public double eval()
eval
in interface ArithExpr
public double eval(Environment e)
eval
in interface ArithExpr
public String toString()
toString
in class Object
public String toMathML()
toMathML
in interface ArithExpr
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |