|
||||||||||
| 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 IIntegerETIRpublic IntegerType getType()
ExpressionTIR
getType in interface DatumTIRgetType in interface ExpressionTIRpublic <T> T accept(ExpressionTIRVisitor<T> visitor)
ExpressionTIRExpressionTIRVisitor.
accept in interface ExpressionTIRvisitor - the visitor object.
public boolean equals(java.lang.Object o)
equals in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Objectpublic java.lang.String toString()
toString in class java.lang.Objectpublic IPosition getPosition()
getPosition in interface HobbesTIR
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||