edu.rice.cs.javalanglevels
Class PackageData
java.lang.Object
edu.rice.cs.javalanglevels.Data
edu.rice.cs.javalanglevels.TypeData
edu.rice.cs.javalanglevels.PackageData
public class PackageData
- extends TypeData
Represents the data for a piece (or pieces) of a package name. This is used as a temporary
building block as we are discovering what class is referenced.
| Nested classes/interfaces inherited from class edu.rice.cs.javalanglevels.Data |
Data.DataTest |
| Methods inherited from class edu.rice.cs.javalanglevels.Data |
addBlock, addEnclosingData, addFinalVars, addInnerClass, addModifier, addVar, addVars, createUniqueName, dollarSignsToDots, dotsToDollarSigns, getEnclosingClass, getEnclosingData, getInnerClasses, getInnerClassOrInterface, getInnerClassOrInterfaceHelper, getMav, getName, getNextAnonymousInnerClass, getNextBlock, getOuterData, getVar, getVars, hasModifier, innerClassesAndInterfacesIterator, isAnonymousClass, isDoublyAnonymous, isOuterData, removeAllBlocks, resetBlockIterator, setEnclosingData, setInnerClasses, setMav, setOuterData |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
PackageData
public PackageData(String s)
- Constructor for PackageData. First piece of name--just takes in the String
PackageData
public PackageData(PackageData pd,
String s)
- Constructor for PackageData. Takes in the package data that is on the lhs, and the name on the rhs,
and combines the names to get the name of this package data.
isInstanceType
public boolean isInstanceType()
- for now, throw a big error, becuase you should have known better.
- Specified by:
isInstanceType in class TypeData
- Returns:
- true if this is an InstanceData, and false if this is a SymbolData.
getSymbolData
public SymbolData getSymbolData()
- Description copied from class:
Data
- Return the enclosing getSymbolData()
- Specified by:
getSymbolData in class TypeData
- Returns:
- the class SymbolData corresponding to this TypeData.
getInstanceData
public InstanceData getInstanceData()
- Specified by:
getInstanceData in class TypeData
- Returns:
- the InstanceData corresponding to this TypeData.