Class ClassType

    • Constructor Detail

      • 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 Detail

      • 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 java.io.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:
        java.io.IOException
      • swapInvalidTypes

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

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

        protected boolean initParents​(ContextStack stack)