Class ClassType

All Implemented Interfaces:
Cloneable, Constants, Constants, ContextElement, Constants, RuntimeConstants
Direct Known Subclasses:
ImplementationType, NCClassType, SpecialClassType, ValueType

public abstract class ClassType extends CompoundType
ClassType is an abstract base representing any non-special class type.
  • Field Details

  • Constructor Details

    • ClassType

      protected ClassType(ContextStack stack, int typeCode, ClassDefinition classDef)
      Create a ClassType instance for the given class. NOTE: This constructor is ONLY for SpecialClassType.
    • ClassType

      protected ClassType(int typeCode, ClassDefinition classDef, ContextStack stack)
      Create a ClassType instance for the given class. NOTE: This constructor is ONLY for ImplementationType. It does not walk the parent chain.
    • ClassType

      protected ClassType(ContextStack stack, ClassDefinition classDef, int typeCode)
      Create an ClassType instance for the given class. The resulting object is not yet completely initialized. Subclasses must call initialize(directInterfaces,directInterfaces,directConstants);
  • Method Details

    • getSuperclass

      public ClassType getSuperclass()
      Return the parent class of this type. Returns null if this type is an interface or if there is no parent.
      Overrides:
      getSuperclass in class CompoundType
    • print

      public void print(IndentingWriter writer, boolean useQualifiedNames, boolean useIDLNames, boolean globalIDLNames) throws IOException
      Print this type.
      Overrides:
      print in class Type
      Parameters:
      writer - The stream to print to.
      useQualifiedNames - If true, print qualified names; otherwise, print unqualified names.
      useIDLNames - If true, print IDL names; otherwise, print java names.
      globalIDLNames - If true and useIDLNames true, prepends "::".
      Throws:
      IOException
    • destroy

      protected void destroy()
      Description copied from class: CompoundType
      Release all resources.
      Overrides:
      destroy in class CompoundType
    • swapInvalidTypes

      protected void swapInvalidTypes()
      Convert all invalid types to valid ones.
      Overrides:
      swapInvalidTypes in class CompoundType
    • addExceptionDescription

      public String addExceptionDescription(String typeDesc)
      Modify the type description with exception info.
    • initParents

      protected boolean initParents(ContextStack stack)