Class CompoundType

    • Field Detail

      • isCORBAObject

        protected boolean isCORBAObject
      • isIDLEntity

        protected boolean isIDLEntity
      • isAbstractBase

        protected boolean isAbstractBase
      • isValueBase

        protected boolean isValueBase
      • isCORBAUserException

        protected boolean isCORBAUserException
      • isException

        protected boolean isException
      • isCheckedException

        protected boolean isCheckedException
      • isRemoteExceptionOrSubclass

        protected boolean isRemoteExceptionOrSubclass
      • idlExceptionName

        protected java.lang.String idlExceptionName
      • qualifiedIDLExceptionName

        protected java.lang.String qualifiedIDLExceptionName
    • Constructor Detail

      • CompoundType

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

        protected CompoundType​(ContextStack stack,
                               ClassDefinition classDef,
                               int typeCode)
        Create a CompoundType instance for the given class. The resulting object is not yet completely initialized.
    • Method Detail

      • isCORBAObject

        public boolean isCORBAObject()
        Return true if this type implements org.omg.CORBA.Object.
      • isIDLEntity

        public boolean isIDLEntity()
        Return true if this type implements org.omg.CORBA.portable.IDLEntity.
      • isValueBase

        public boolean isValueBase()
        Return true if this type implements org.omg.CORBA.portable.ValueBase.
      • isAbstractBase

        public boolean isAbstractBase()
        Return true if this type is a CORBA abstract interface.
      • isException

        public boolean isException()
        Return true if this type is an exception.
      • isCheckedException

        public boolean isCheckedException()
        Return true if this type is a "checked" exception. Result if valid iff isException() returns true.
      • isRemoteExceptionOrSubclass

        public boolean isRemoteExceptionOrSubclass()
        Return true if this type is a java.rmi.RemoteException or one of its subclasses. Result if valid iff isException() returns true.
      • isCORBAUserException

        public boolean isCORBAUserException()
        Return true if this type is exactly org.omg.CORBA.UserException.
      • isIDLEntityException

        public boolean isIDLEntityException()
        Return true if this type implements isIDLEntity() && isException().
      • isBoxed

        public boolean isBoxed()
        Return true if isIDLEntity() && !isValueBase() && !isAbstractBase() && !isCORBAObject() && !isIDLEntityException().
      • getIDLExceptionName

        public java.lang.String getIDLExceptionName()
        If this type represents an exception, return the IDL name including the "Ex" mangling, otherwise return null.
      • getQualifiedIDLExceptionName

        public java.lang.String getQualifiedIDLExceptionName​(boolean global)
        If this type represents an exception, return the qualified IDL name including the "Ex" mangling, otherwise return null.
        Parameters:
        global - If true, prepends "::".
      • getSignature

        public java.lang.String getSignature()
        Return signature for this type (e.g. com.acme.Dynamite would return "com.acme.Dynamite", byte = "B")
        Specified by:
        getSignature in class Type
      • getClassDeclaration

        public ClassDeclaration getClassDeclaration()
        Return the ClassDeclaration for this type.
      • getClassDefinition

        public ClassDefinition getClassDefinition()
        Return the ClassDefinition for this type.
      • 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.
      • getInterfaces

        public InterfaceType[] getInterfaces()
        Return an array of interfaces directly implemented by this type.

        The order of the array returned is arbitrary.

      • getMethods

        public CompoundType.Method[] getMethods()
        Return an array of Type.Method objects representing all of the methods implemented directly by this type.
      • getMembers

        public CompoundType.Member[] getMembers()
        Return an array of Type.Member objects representing all of the data members directly implemented by this interface.
      • forCompound

        static CompoundType forCompound​(ClassDefinition classDef,
                                        ContextStack stack)
        Create a CompoundType object for the given class. If the class is not a properly formed or if some other error occurs, the return value will be null, and errors will have been reported to the supplied BatchEnvironment.
      • destroy

        protected void destroy()
        Release all resources.
        Overrides:
        destroy in class Type
      • loadClass

        protected java.lang.Class<?> loadClass()
        Specified by:
        loadClass in class Type
      • printExtends

        protected boolean printExtends​(IndentingWriter writer,
                                       boolean useQualifiedNames,
                                       boolean useIDLNames,
                                       boolean globalIDLNames)
                                throws java.io.IOException
        Throws:
        java.io.IOException
      • printImplements

        protected void printImplements​(IndentingWriter writer,
                                       java.lang.String prefix,
                                       boolean useQualifiedNames,
                                       boolean useIDLNames,
                                       boolean globalIDLNames)
                                throws java.io.IOException
        Throws:
        java.io.IOException
      • printMembers

        protected void printMembers​(IndentingWriter writer,
                                    boolean useQualifiedNames,
                                    boolean useIDLNames,
                                    boolean globalIDLNames)
                             throws java.io.IOException
        Throws:
        java.io.IOException
      • printMethods

        protected void printMethods​(IndentingWriter writer,
                                    boolean useQualifiedNames,
                                    boolean useIDLNames,
                                    boolean globalIDLNames)
                             throws java.io.IOException
        Throws:
        java.io.IOException
      • printMethod

        protected void printMethod​(CompoundType.Method it,
                                   IndentingWriter writer,
                                   boolean useQualifiedNames,
                                   boolean useIDLNames,
                                   boolean globalIDLNames)
                            throws java.io.IOException
        Throws:
        java.io.IOException
      • setFlags

        private void setFlags()
      • swapInvalidTypes

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

        protected boolean addTypes​(int typeCodeFilter,
                                   java.util.HashSet<Type> checked,
                                   java.util.Vector<Type> matching)
        Overrides:
        addTypes in class Type
      • isConformingConstantType

        private boolean isConformingConstantType​(MemberDefinition member)
      • isConformingConstantType

        private boolean isConformingConstantType​(Type theType,
                                                 MemberDefinition member)
      • addAllMembers

        protected boolean addAllMembers​(java.util.Vector<CompoundType.Member> allMembers,
                                        boolean onlyConformingConstants,
                                        boolean quiet,
                                        ContextStack stack)
      • addConformingConstants

        protected boolean addConformingConstants​(java.util.Vector<CompoundType.Member> allMembers,
                                                 boolean quiet,
                                                 ContextStack stack)
      • getMethodExceptions

        protected ValueType[] getMethodExceptions​(MemberDefinition member,
                                                  boolean quiet,
                                                  ContextStack stack)
                                           throws java.lang.Exception
        Throws:
        java.lang.Exception
      • getVisibilityString

        protected static java.lang.String getVisibilityString​(MemberDefinition member)
      • assertNotImpl

        protected boolean assertNotImpl​(Type type,
                                        boolean quiet,
                                        ContextStack stack,
                                        CompoundType enclosing,
                                        boolean dataMember)