|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.norecess.citkit.tir.expressions.IntegerETIR
public class IntegerETIR
The TIR for a literal integer expression.
Constructor Summary | |
---|---|
IntegerETIR(int value)
Basic constructor. |
|
IntegerETIR(IPosition position,
int value)
Constructs a literal integer expression. |
|
IntegerETIR(Position position,
java.lang.String value)
Parses the string as an integer. |
|
IntegerETIR(java.lang.String value)
Parses the string as an integer. |
Method Summary | ||
---|---|---|
|
accept(ExpressionTIRVisitor<T> visitor)
Implements the visitor pattern with ExpressionTIRVisitor . |
|
boolean |
equals(java.lang.Object o)
|
|
IPosition |
getPosition()
Retrieves the position of the code that generated the TIR. |
|
IntegerType |
getType()
Retrieves the type of the expression. |
|
int |
getValue()
Returns the literal value of the integer expression. |
|
int |
hashCode()
|
|
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public IntegerETIR(IPosition position, int value)
position
- the position of the integer expression in the source code.value
- the literal value of the integer.public IntegerETIR(int value)
value
- the value of the integer.public IntegerETIR(java.lang.String value)
value
- the value to be parsed as an integer.public IntegerETIR(Position position, java.lang.String value)
position
- the location of this TIR in the source file.value
- the value to be parsed as an integer.Method Detail |
---|
public int getValue()
getValue
in interface IIntegerETIR
public IntegerType getType()
ExpressionTIR
getType
in interface DatumTIR
getType
in interface ExpressionTIR
public <T> T accept(ExpressionTIRVisitor<T> visitor)
ExpressionTIR
ExpressionTIRVisitor
.
accept
in interface ExpressionTIR
visitor
- the visitor object.
public boolean equals(java.lang.Object o)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public java.lang.String toString()
toString
in class java.lang.Object
public IPosition getPosition()
getPosition
in interface HobbesTIR
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |