edu.cmu.cs.crystal.tac.model
Class SuperVariable

java.lang.Object
  extended by edu.cmu.cs.crystal.tac.model.Variable
      extended by edu.cmu.cs.crystal.tac.model.KeywordVariable
          extended by edu.cmu.cs.crystal.tac.model.SuperVariable

public class SuperVariable
extends KeywordVariable

The Super class represents the super keyword. Note that in this sense, super is actually much like a variable.

Author:
Kevin Bierhoff

Constructor Summary
SuperVariable(EclipseTAC tac)
          Creates an unqualified super variable.
SuperVariable(EclipseTAC tac, Name qualifier)
          Creates an qualified super variable.
 
Method Summary
<T> T
dispatch(IVariableVisitor<T> visitor)
           
 String getKeyword()
          Which keyword does this variable represent?
 boolean isUnqualifiedSuper()
           
 ITypeBinding resolveType()
          null or the type binding of this variable.
 
Methods inherited from class edu.cmu.cs.crystal.tac.model.KeywordVariable
getQualifier, isQualified, toString
 
Methods inherited from class edu.cmu.cs.crystal.tac.model.Variable
getSourceString, isUnqualifiedThis
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

SuperVariable

public SuperVariable(EclipseTAC tac)
Creates an unqualified super variable.

Parameters:
tac -

SuperVariable

public SuperVariable(EclipseTAC tac,
                     Name qualifier)
Creates an qualified super variable.

Parameters:
tac -
qualifier -
Method Detail

getKeyword

public String getKeyword()
Description copied from class: KeywordVariable
Which keyword does this variable represent?

Specified by:
getKeyword in class KeywordVariable
Returns:
The keyword, in string form.

resolveType

public ITypeBinding resolveType()
Description copied from class: Variable
null or the type binding of this variable.

Specified by:
resolveType in class Variable
See Also:
Expression.resolveTypeBinding()

dispatch

public <T> T dispatch(IVariableVisitor<T> visitor)
Specified by:
dispatch in class Variable

isUnqualifiedSuper

public boolean isUnqualifiedSuper()
Overrides:
isUnqualifiedSuper in class Variable