|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.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 IStringETIRpublic StringType 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 | |||||||||