|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.norecess.citkit.tir.expressions.StringETIR
public class StringETIR
The TIR for a literal string expression.
Constructor Summary | |
---|---|
StringETIR(IPosition position,
java.lang.String value)
Constructs a literal string expression. |
|
StringETIR(java.lang.String value)
Basic constructor. |
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 AST. |
|
StringType |
getType()
Retrieves the type of the expression. |
|
java.lang.String |
getValue()
Returns the literal value of the string 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 StringETIR(IPosition position, java.lang.String value)
position
- the position of the string expression in the source code.value
- the literal value of the string expression.public StringETIR(java.lang.String value)
value
- the string.Method Detail |
---|
public java.lang.String getValue()
getValue
in interface IStringETIR
public StringType 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 |