|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.norecess.citkit.tir.lvalues.SimpleLValueTIR
public class SimpleLValueTIR
The TIR for a simple variable reference.
Constructor Summary | |
---|---|
SimpleLValueTIR(IPosition position,
ISymbol name)
Constructs a simple variable reference. |
|
SimpleLValueTIR(IPosition position,
ISymbol name,
HobbesType type)
Constructs a simple variable reference. |
|
SimpleLValueTIR(ISymbol name)
Basic constructor. |
|
SimpleLValueTIR(ISymbol name,
HobbesType type)
Basic constructor. |
Method Summary | ||
---|---|---|
|
accept(LValueTIRVisitor<T> visitor)
Implements the visitor pattern with LValueTIRVisitor . |
|
boolean |
equals(java.lang.Object o)
|
|
ISymbol |
getName()
Returns the name of the variable. |
|
IPosition |
getPosition()
Returns the location of the l-value in the code. |
|
HobbesType |
getType()
Returns the type of the l-value. |
|
int |
hashCode()
|
|
void |
setType(HobbesType type)
Sets the type of the l-value. |
|
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public SimpleLValueTIR(IPosition position, ISymbol name)
position
- the position of the variable reference in the source code.name
- the name of the variable.public SimpleLValueTIR(IPosition position, ISymbol name, HobbesType type)
position
- the position of the variable reference in the source code.name
- the name of the variable.type
- the type of the variable.public SimpleLValueTIR(ISymbol name)
name
- the name of the variable.public SimpleLValueTIR(ISymbol name, HobbesType type)
name
- the name of the variable.type
- the type of the variable.Method Detail |
---|
public ISymbol getName()
getName
in interface ISimpleLValueTIR
public <T> T accept(LValueTIRVisitor<T> visitor)
LValueTIR
LValueTIRVisitor
.
accept
in interface LValueTIR
T
- the return type from the visit with the visitor.visitor
- the visitor itself.
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 HobbesType getType()
LValueTIR
getType
in interface LValueTIR
public void setType(HobbesType type)
LValueTIR
setType
in interface LValueTIR
type
- the type of the l-value.public IPosition getPosition()
LValueTIR
getPosition
in interface HobbesTIR
getPosition
in interface LValueTIR
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |