dpt.symbtab
Class PrimitiveDef

java.lang.Object
  |
  +--dpt.symbtab.Definition
        |
        +--dpt.symbtab.ScopedDef
              |
              +--dpt.symbtab.HasImports
                    |
                    +--dpt.symbtab.ClassDef
                          |
                          +--dpt.symbtab.PrimitiveDef

class PrimitiveDef
extends ClassDef

Definition of a primitive type. We subclass ClassDef here as a shortcut for method parameter lookups. By defining primitives in a hierarchy we get the primitive type promotion for free. For this cross-reference tool we don't actually perform any type conversions, but we thought it would be a good example of how some constructs can be used in similar ways, even though it might not appear like the proper model.


Fields inherited from class dpt.symbtab.ClassDef
CLASS, classOrInterface, EITHER, implementers, INTERFACE, interfaces, modifiers, subClasses, superClass
 
Fields inherited from class dpt.symbtab.HasImports
imports
 
Fields inherited from class dpt.symbtab.ScopedDef
elements, iAmDefaultOrBaseScope, unresolvedStuff
 
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) PrimitiveDef(java.lang.String name, ClassDef superClass, ScopedDef parentScope)
          Constructor to create a primitive type object
 
Method Summary
 void report(IndentingPrintWriter out)
          Write information about this primitive type to the report
 
Methods inherited from class dpt.symbtab.ClassDef
addImplementer, addSubclass, getImplementers, getInterfaces, GetItem, GetItems, GetLocation, GetLocation, getSubClasses, getSuperClass, isClass, isInterface, lookup, resolveTypes, setInterfaces, setSuperClass, setType
 
Methods inherited from class dpt.symbtab.HasImports
closeImports, getImports, isTopLevel, openImports, reportImports, setImports
 
Methods inherited from class dpt.symbtab.ScopedDef
add, addUnresolved, GetListItems, GetStringItems, GetStringLocation, hasElements, isDefaultOrBaseScope, reportElements, setDefaultOrBaseScope
 
Methods inherited from class dpt.symbtab.Definition
addReference, ExtractClass, ExtractClass, ExtractName, ExtractPackage, ExtractPackage, getDef, getName, getOccurrence, getParentScope, getQualifiedName, GetReferences, isSuperClassOf, listReferences, lookup, setParentScope, toString
 
Methods inherited from class java.lang.Object
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, registerNatives, wait, wait, wait
 

Constructor Detail

PrimitiveDef

PrimitiveDef(java.lang.String name,
             ClassDef superClass,
             ScopedDef parentScope)
Constructor to create a primitive type object
Method Detail

report

public void report(IndentingPrintWriter out)
Write information about this primitive type to the report
Overrides:
report in class ClassDef