edu.cmu.cs.crystal.tac.model
Class Variable
java.lang.Object
edu.cmu.cs.crystal.tac.model.Variable
- Direct Known Subclasses:
- KeywordVariable, SourceVariable, TempVariable, TypeVariable
public abstract class Variable
- extends Object
This class is the abstract super type of all variables in the three address
code representation of a given Java program. Note that the only thing all
the different types of variables have is that they all have a type.
There are several different variable types that extend this type and in
general are much more interesting than this class. These subclasses include
'temporary' variables in three address code as well as variables that
correspond with actual Java source code variables.
- Author:
- Kevin Bierhoff
Variable
public Variable()
resolveType
public abstract ITypeBinding resolveType()
null
or the type binding of this variable.
- See Also:
Expression.resolveTypeBinding()
getSourceString
public String getSourceString()
- Returns a string representing this variable in the source.
- Returns:
- String representing this variable in the source.
dispatch
public abstract <T> T dispatch(IVariableVisitor<T> visitor)
isUnqualifiedSuper
public boolean isUnqualifiedSuper()
isUnqualifiedThis
public boolean isUnqualifiedThis()