|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectedu.ksu.cis.projects.bogor.ast.Node
edu.ksu.cis.projects.bogor.ast.Literal
edu.ksu.cis.projects.bogor.ast.DoubleLiteral
public final class DoubleLiteral
Double literal AST
| Field Summary |
|---|
| Fields inherited from class edu.ksu.cis.projects.bogor.ast.Node |
|---|
ILLEGAL_LOCAL_ID_CHAR |
| Constructor Summary | |
|---|---|
DoubleLiteral(double d)
Default constructor. |
|
| Method Summary | |
|---|---|
DoubleLiteral |
clone()
Clones this object (deep clone); including location info. |
double |
getDouble()
Gets the double. |
void |
negate()
Convert the numeric value of this node to -v, where
v is the value in the pre-state. |
void |
setDouble(double newDouble)
Sets the double. |
String |
toString()
Returns the string representation of this object. |
void |
visit(ASTVisitor visitor)
|
| Methods inherited from class edu.ksu.cis.projects.bogor.ast.Literal |
|---|
dispose, getParent, setParent |
| Methods inherited from class edu.ksu.cis.projects.bogor.ast.Node |
|---|
getLocationInfo, getProperty, putProperty, setLocationInfo |
| Methods inherited from class java.lang.Object |
|---|
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public DoubleLiteral(double d)
d - The double.| Method Detail |
|---|
public void setDouble(double newDouble)
newDouble - The new double.public double getDouble()
public void negate()
-v, where
v is the value in the pre-state.
negate in interface NumericallyNegatableLiteralpublic DoubleLiteral clone()
clone in class Literalpublic String toString()
toString in class Nodepublic void visit(ASTVisitor visitor)
visit in class Node
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||