|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object edu.ksu.cis.projects.bogor.ast.Node edu.ksu.cis.projects.bogor.ast.Literal edu.ksu.cis.projects.bogor.ast.FloatLiteral
public final class FloatLiteral
Float literal AST
Field Summary |
---|
Fields inherited from class edu.ksu.cis.projects.bogor.ast.Node |
---|
ILLEGAL_LOCAL_ID_CHAR |
Constructor Summary | |
---|---|
FloatLiteral(float f)
Default constructor. |
Method Summary | |
---|---|
FloatLiteral |
clone()
Clones this object (deep clone); including location info. |
float |
getFloat()
Gets the float. |
void |
negate()
Convert the numeric value of this node to -v , where
v is the value in the pre-state. |
void |
setFloat(float newFloat)
Sets the float. |
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 FloatLiteral(float f)
f
- The float.Method Detail |
---|
public void setFloat(float newFloat)
newFloat
- The new float.public float getFloat()
public void negate()
-v
, where
v
is the value in the pre-state.
negate
in interface NumericallyNegatableLiteral
public FloatLiteral clone()
clone
in class Literal
public String toString()
toString
in class Node
public void visit(ASTVisitor visitor)
visit
in class Node
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |