dpt.symbtab
Class ArrayDef
java.lang.Object
|
+--dpt.symbtab.Definition
|
+--dpt.symbtab.ArrayDef
- class ArrayDef
- extends Definition
- implements TypedDef
Definition of an array type. Note that this is not currently used in the
cross reference tool, but you would define something like this if you
wanted to make the tool complete.
Fields inherited from class dpt.symbtab.Definition |
definition,
name,
parentScope,
references,
ST_CL,
ST_FU,
ST_FU_EXT,
ST_IF,
ST_IMPL,
ST_IMPORT,
ST_PAC,
ST_SUB,
ST_SUPER,
ST_VAR |
Constructor Summary |
(package private) |
ArrayDef(java.lang.String name,
Occurrence occ,
ScopedDef parentScope)
Constructor to create a new array type |
Method Summary |
java.lang.String |
GetItem(int TypID)
|
java.util.Vector |
GetItems(int TypID,
java.lang.String modifier)
|
java.lang.String |
GetLocation(int TypID,
java.lang.String sName)
|
Definition |
getType()
return the base type of the array |
void |
report(IndentingPrintWriter out)
Write information about the array to the report |
(package private) void |
resolveTypes()
Resolves references to other symbols used by this symbol |
java.lang.String |
toString()
Return a String representation of the class |
Methods inherited from class dpt.symbtab.Definition |
addReference,
ExtractClass,
ExtractClass,
ExtractName,
ExtractPackage,
ExtractPackage,
getDef,
getName,
getOccurrence,
getParentScope,
getQualifiedName,
GetReferences,
isSuperClassOf,
listReferences,
lookup,
lookup,
resolveTypes,
setParentScope |
Methods inherited from class java.lang.Object |
,
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
registerNatives,
wait,
wait,
wait |
type
private Definition type
- The base type for the Array
ArrayDef
ArrayDef(java.lang.String name,
Occurrence occ,
ScopedDef parentScope)
- Constructor to create a new array type
getType
public Definition getType()
- return the base type of the array
- Specified by:
- getType in interface TypedDef
GetLocation
public java.lang.String GetLocation(int TypID,
java.lang.String sName)
- Overrides:
- GetLocation in class Definition
GetItem
public java.lang.String GetItem(int TypID)
- Overrides:
- GetItem in class Definition
GetItems
public java.util.Vector GetItems(int TypID,
java.lang.String modifier)
- Overrides:
- GetItems in class Definition
report
public void report(IndentingPrintWriter out)
- Write information about the array to the report
- Overrides:
- report in class Definition
resolveTypes
void resolveTypes()
- Resolves references to other symbols used by this symbol
toString
public java.lang.String toString()
- Return a String representation of the class
- Overrides:
- toString in class Definition