|
||||||||||
| 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.LongLiteral
public final class LongLiteral
Long literal AST
| Field Summary |
|---|
| Fields inherited from class edu.ksu.cis.projects.bogor.ast.Node |
|---|
ILLEGAL_LOCAL_ID_CHAR |
| Constructor Summary | |
|---|---|
LongLiteral(BigInteger l)
Default base 10 constructor. |
|
LongLiteral(BigInteger l,
Radix radix)
Default constructor. |
|
LongLiteral(long l)
Equivalent to LongLiteral(BigInteger.valueOf(l)) |
|
LongLiteral(long l,
Radix radix)
Equivalent to LongLiteral(BigInteger.valueOf(l), radix) |
|
| Method Summary | |
|---|---|
LongLiteral |
clone()
Clones this object (deep clone); including location info. |
BigInteger |
getLong()
Gets the long. |
Radix |
getRadix()
|
void |
negate()
Convert the numeric value of this node to -v, where
v is the value in the pre-state. |
void |
setLong(BigInteger newLong)
Sets the long. |
protected void |
setRadix(Radix newRadix)
|
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 LongLiteral(BigInteger l,
Radix radix)
l - The long.public LongLiteral(BigInteger l)
LongLiteral(l, Radix.DECIMAL).
l - The long.
public LongLiteral(long l,
Radix radix)
LongLiteral(BigInteger.valueOf(l), radix)
l - The long.public LongLiteral(long l)
LongLiteral(BigInteger.valueOf(l))
l - The long.| Method Detail |
|---|
public void setLong(BigInteger newLong)
newLong - The new long.public BigInteger getLong()
public void negate()
-v, where
v is the value in the pre-state.
negate in interface NumericallyNegatableLiteralpublic LongLiteral clone()
clone in class Literalpublic String toString()
toString in class Nodepublic void visit(ASTVisitor visitor)
visit in class Nodeprotected void setRadix(Radix newRadix)
public Radix getRadix()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||