|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectedu.cmu.cs.crystal.tac.model.Variable
edu.cmu.cs.crystal.tac.model.KeywordVariable
public abstract class KeywordVariable
Java and our three address code contain two 'special' variables that
correspond with Java keywords and must be treated in a different manner
than traditional source code variables.
These two variables are super
and this
. At the
very minimum, these variables are interesting in the sense that their
type changes depending upon which class the method we are examining is
contained within.
super
and this
can be qualified, so methods
for returning this information are included as well. this
could be an implicit; in this case, the qualifier information is not
guaranteed to be available.
Method Summary | |
---|---|
abstract String |
getKeyword()
Which keyword does this variable represent? |
Name |
getQualifier()
Returns the qualifier. |
boolean |
isQualified()
Is this a standard keyword variable, or is it qualified? |
String |
toString()
|
Methods inherited from class edu.cmu.cs.crystal.tac.model.Variable |
---|
dispatch, getSourceString, isUnqualifiedSuper, isUnqualifiedThis, resolveType |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Method Detail |
---|
public boolean isQualified()
public Name getQualifier()
null
if not qualified or qualifier not available (implicit qualification).public abstract String getKeyword()
public String toString()
toString
in class Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |