Package org.glassfish.rmic.iiop
Class CompoundType
- java.lang.Object
-
- org.glassfish.rmic.iiop.Type
-
- org.glassfish.rmic.iiop.CompoundType
-
- All Implemented Interfaces:
java.lang.Cloneable,Constants,Constants,ContextElement,Constants,RuntimeConstants
- Direct Known Subclasses:
ClassType,InterfaceType
public abstract class CompoundType extends Type
A CompoundType is an abstract base class for all IIOP class and interface types.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description classCompoundType.MemberAn CompoundType.Member object wraps a Type and a value representing a data member, including constants.classCompoundType.MethodA CompoundType.Method object encapsulates IIOP-specific information about a particular method in the interface represented by the outer instance.
-
Field Summary
Fields Modifier and Type Field Description protected ClassDeclarationclassDeclprotected ClassDefinitionclassDefprotected java.lang.StringidlExceptionNameprotected InterfaceType[]interfacesprotected booleanisAbstractBaseprotected booleanisCheckedExceptionprotected booleanisCORBAObjectprotected booleanisCORBAUserExceptionprotected booleanisExceptionprotected booleanisIDLEntityprotected booleanisRemoteExceptionOrSubclassprotected booleanisValueBaseprotected CompoundType.Member[]membersprotected CompoundType.Method[]methodsprotected java.lang.StringqualifiedIDLExceptionName-
Fields inherited from interface org.glassfish.rmic.Constants
idRemote, idRemoteException
-
Fields inherited from interface org.glassfish.rmic.iiop.Constants
ATTRIBUTE_GET, ATTRIBUTE_GET_RW, ATTRIBUTE_IS, ATTRIBUTE_IS_RW, ATTRIBUTE_NONE, ATTRIBUTE_SET, ATTRIBUTE_WIRE_PREFIX, ERROR_SUFFIX, EX_SUFFIX, EXCEPTION_SUFFIX, idApplicationException, idBadMethodException, idBoolean, idBoxedIDL, idBoxedRMI, idByte, idChar, idClassDesc, idCorbaObject, idCorbaORB, idCorbaUserException, idDelegate, idDouble, idExtInputStream, idExtOutputStream, idFloat, idIDLEntity, idInputStream, idInt, idJavaIoExternalizable, idJavaIoIOException, IDL_ANY, IDL_BOOLEAN, IDL_BOXEDIDL_MODULE, IDL_BYTE, IDL_CHAR, IDL_CLASS, IDL_CLASS_MODULE, IDL_CONSTANT_STRING, IDL_CONSTRUCTOR, IDL_CORBA_MODULE, IDL_CORBA_OBJECT, IDL_DOUBLE, IDL_EXTERNALIZABLE, IDL_FILE_EXTENSION, IDL_FLOAT, IDL_IDLENTITY, IDL_INT, IDL_JAVA_IO_MODULE, IDL_JAVA_LANG_MODULE, IDL_JAVA_LANG_OBJECT, IDL_JAVA_RMI_MODULE, IDL_JAVA_RMI_REMOTE, IDL_KEYWORDS, IDL_LONG, IDL_NAME_SEPARATOR, IDL_ORG_OMG_CORBA_MODULE, IDL_ORG_OMG_CORBA_PORTABLE_MODULE, IDL_REPOSITORY_ID_PREFIX, IDL_REPOSITORY_ID_VERSION, IDL_SEQUENCE, IDL_SEQUENCE_MODULE, IDL_SERIALIZABLE, IDL_SHORT, IDL_STRING, IDL_VOID, idLong, idOutputStream, idPOAServantType, idPortableUnknownException, idRemarshalException, idReplyHandler, idShort, idStubBase, idSystemException, idTieBase, idTieInterface, idValueBase, idVoid, INDENT_STEP, NAME_SEPARATOR, SERIAL_VERSION_UID, SOURCE_FILE_EXTENSION, STATUS_INVALID, STATUS_PENDING, STATUS_VALID, TAB_SIZE, TM_CLASS, TM_COMPOUND, TM_INNER, TM_INTERFACE, TM_MASK, TM_NON_CONFORMING, TM_PRIMITIVE, TM_SPECIAL_CLASS, TM_SPECIAL_INTERFACE, TYPE_ABSTRACT, TYPE_ALL, TYPE_ANY, TYPE_ARRAY, TYPE_BOOLEAN, TYPE_BYTE, TYPE_CHAR, TYPE_CORBA_OBJECT, TYPE_DOUBLE, TYPE_FLOAT, TYPE_IMPLEMENTATION, TYPE_INT, TYPE_JAVA_RMI_REMOTE, TYPE_LONG, TYPE_MASK, TYPE_NC_CLASS, TYPE_NC_INTERFACE, TYPE_NONE, TYPE_REMOTE, TYPE_SHORT, TYPE_STRING, TYPE_VALUE, TYPE_VOID
-
Fields inherited from interface org.glassfish.rmic.tools.java.Constants
ABSTRACT, ACCM_CLASS, ACCM_FIELD, ACCM_INNERCLASS, ACCM_MEMBER, ACCM_METHOD, ADD, AND, ARRAY, ARRAYACCESS, ASGADD, ASGBITAND, ASGBITOR, ASGBITXOR, ASGDIV, ASGLSHIFT, ASGMUL, ASGREM, ASGRSHIFT, ASGSUB, ASGURSHIFT, ASSIGN, ATT_ALL, ATT_ALLCLASSES, ATT_CODE, BITAND, BITNOT, BITOR, BITXOR, BOOLEAN, BOOLEANVAL, BREAK, BYTE, BYTEVAL, CASE, CAST, CATCH, CHAR, CHARVAL, CLASS, COLON, COMMA, COMMENT, COND, CONST, CONTINUE, CONVERT, CS_BINARY, CS_CHECKED, CS_COMPILED, CS_NOTFOUND, CS_PARSED, CS_SOURCE, CS_UNDECIDED, CS_UNDEFINED, CT_BLOCK, CT_BRANCH_FALSE, CT_BRANCH_TRUE, CT_CASE, CT_FIKT_METHOD, CT_FIKT_RET, CT_FIRST_KIND, CT_LAST_KIND, CT_METHOD, CT_SWITH_WO_DEF, DEC, DECLARATION, DEFAULT, DIV, DO, DOUBLE, DOUBLEVAL, ELSE, EQ, ERROR, EXPR, EXPRESSION, EXTENDS, F_COVDATA, F_COVERAGE, F_DEBUG_LINES, F_DEBUG_SOURCE, F_DEBUG_VARS, F_DEPENDENCIES, F_DEPRECATION, F_DUMP, F_ERRORSREPORTED, F_OPT, F_OPT_INTERCLASS, F_PRINT_DEPENDENCIES, F_STRICTDEFAULT, F_VERBOSE, F_VERSION12, F_WARNINGS, FALSE, FIELD, FINAL, FINALLY, FLOAT, FLOATVAL, FOR, GE, GOTO, GT, idAppend, idClass, idClassInit, idClone, idCode, idConstantValue, idCoverageTable, idDeprecated, idDocumentation, IDENT, idExceptions, idFinallyReturnValue, idGetClass, idInit, idInnerClasses, idJavaIoSerializable, idJavaLang, idJavaLangClass, idJavaLangCloneable, idJavaLangError, idJavaLangException, idJavaLangObject, idJavaLangRuntimeException, idJavaLangString, idJavaLangStringBuffer, idJavaLangThrowable, idLength, idLineNumberTable, idLocalVariableTable, idNew, idNull, idSourceFile, idStar, idSuper, idSynthetic, idThis, idToString, idTYPE, idValueOf, IF, IMPLEMENTS, IMPORT, INC, INLINEMETHOD, INLINENEWINSTANCE, INLINERETURN, INSTANCEOF, INT, INTERFACE, INTVAL, LBRACE, LE, LENGTH, LONG, LONGVAL, LPAREN, LSHIFT, LSQBRACKET, LT, M_ABSTRACT, M_ANONYMOUS, M_DEPRECATED, M_FINAL, M_INLINEABLE, M_INTERFACE, M_LOCAL, M_NATIVE, M_PRIVATE, M_PROTECTED, M_PUBLIC, M_STATIC, M_STRICTFP, M_SYNCHRONIZED, M_SYNTHETIC, M_TRANSIENT, M_VOLATILE, MAXFILESIZE, MAXLINENUMBER, METHOD, MM_CLASS, MM_FIELD, MM_MEMBER, MM_METHOD, MUL, NATIVE, NE, NEG, NEW, NEWARRAY, NEWFROMNAME, NEWINSTANCE, NOT, NULL, opNames, opPrecedence, OR, PACKAGE, paraDeprecated, POS, POSTDEC, POSTINC, PREDEC, prefixAccess, prefixArray, prefixClass, prefixLoc, prefixThis, prefixVal, PREINC, PRIVATE, PROTECTED, PUBLIC, QUESTIONMARK, RBRACE, REM, RETURN, RPAREN, RSHIFT, RSQBRACKET, SEMICOLON, SHORT, SHORTVAL, SIG_INNERCLASS, SIGC_INNERCLASS, STAT, STATIC, STRICTFP, STRINGVAL, SUB, SUPER, SWITCH, SYNCHRONIZED, TC_ARRAY, TC_BOOLEAN, TC_BYTE, TC_CHAR, TC_CLASS, TC_DOUBLE, TC_ERROR, TC_FLOAT, TC_INT, TC_LONG, TC_METHOD, TC_NULL, TC_SHORT, TC_VOID, THIS, THROW, THROWS, TM_ARRAY, TM_BOOLEAN, TM_BYTE, TM_CHAR, TM_DOUBLE, TM_ERROR, TM_FLOAT, TM_INT, TM_INT32, TM_INTEGER, TM_LONG, TM_METHOD, TM_NULL, TM_NUM32, TM_NUM64, TM_NUMBER, TM_REAL, TM_REFERENCE, TM_SHORT, TM_VOID, tracing, TRANSIENT, TRUE, TRY, TYPE, URSHIFT, VARDECLARATION, VOID, VOLATILE, WHEREOFFSETBITS, WHILE
-
Fields inherited from interface org.glassfish.rmic.tools.java.RuntimeConstants
ACC_ABSTRACT, ACC_FINAL, ACC_INTERFACE, ACC_NATIVE, ACC_PRIVATE, ACC_PROTECTED, ACC_PUBLIC, ACC_STATIC, ACC_STRICT, ACC_SUPER, ACC_SYNCHRONIZED, ACC_TRANSIENT, ACC_VOLATILE, CONSTANT_CLASS, CONSTANT_DOUBLE, CONSTANT_FIELD, CONSTANT_FLOAT, CONSTANT_INTEGER, CONSTANT_INTERFACEMETHOD, CONSTANT_INVOKEDYNAMIC, CONSTANT_LONG, CONSTANT_METHOD, CONSTANT_METHODHANDLE, CONSTANT_METHODTYPE, CONSTANT_NAMEANDTYPE, CONSTANT_STRING, CONSTANT_UNICODE, CONSTANT_UTF8, JAVA_DEFAULT_MINOR_VERSION, JAVA_DEFAULT_VERSION, JAVA_MAGIC, JAVA_MAX_SUPPORTED_MINOR_VERSION, JAVA_MAX_SUPPORTED_VERSION, JAVA_MIN_SUPPORTED_VERSION, opc_aaload, opc_aastore, opc_aconst_null, opc_aload, opc_aload_0, opc_aload_1, opc_aload_2, opc_aload_3, opc_anewarray, opc_areturn, opc_arraylength, opc_astore, opc_astore_0, opc_astore_1, opc_astore_2, opc_astore_3, opc_athrow, opc_baload, opc_bastore, opc_bipush, opc_breakpoint, opc_caload, opc_castore, opc_checkcast, opc_d2f, opc_d2i, opc_d2l, opc_dadd, opc_daload, opc_dastore, opc_dcmpg, opc_dcmpl, opc_dconst_0, opc_dconst_1, opc_ddiv, opc_dead, opc_dload, opc_dload_0, opc_dload_1, opc_dload_2, opc_dload_3, opc_dmul, opc_dneg, opc_drem, opc_dreturn, opc_dstore, opc_dstore_0, opc_dstore_1, opc_dstore_2, opc_dstore_3, opc_dsub, opc_dup, opc_dup_x1, opc_dup_x2, opc_dup2, opc_dup2_x1, opc_dup2_x2, opc_f2d, opc_f2i, opc_f2l, opc_fadd, opc_faload, opc_fastore, opc_fcmpg, opc_fcmpl, opc_fconst_0, opc_fconst_1, opc_fconst_2, opc_fdiv, opc_fload, opc_fload_0, opc_fload_1, opc_fload_2, opc_fload_3, opc_fmul, opc_fneg, opc_frem, opc_freturn, opc_fstore, opc_fstore_0, opc_fstore_1, opc_fstore_2, opc_fstore_3, opc_fsub, opc_getfield, opc_getstatic, opc_goto, opc_goto_w, opc_i2b, opc_i2c, opc_i2d, opc_i2f, opc_i2l, opc_i2s, opc_iadd, opc_iaload, opc_iand, opc_iastore, opc_iconst_0, opc_iconst_1, opc_iconst_2, opc_iconst_3, opc_iconst_4, opc_iconst_5, opc_iconst_m1, opc_idiv, opc_if_acmpeq, opc_if_acmpne, opc_if_icmpeq, opc_if_icmpge, opc_if_icmpgt, opc_if_icmple, opc_if_icmplt, opc_if_icmpne, opc_ifeq, opc_ifge, opc_ifgt, opc_ifle, opc_iflt, opc_ifne, opc_ifnonnull, opc_ifnull, opc_iinc, opc_iload, opc_iload_0, opc_iload_1, opc_iload_2, opc_iload_3, opc_imul, opc_ineg, opc_instanceof, opc_invokedynamic, opc_invokeinterface, opc_invokespecial, opc_invokestatic, opc_invokevirtual, opc_ior, opc_irem, opc_ireturn, opc_ishl, opc_ishr, opc_istore, opc_istore_0, opc_istore_1, opc_istore_2, opc_istore_3, opc_isub, opc_iushr, opc_ixor, opc_jsr, opc_jsr_w, opc_l2d, opc_l2f, opc_l2i, opc_label, opc_ladd, opc_laload, opc_land, opc_lastore, opc_lcmp, opc_lconst_0, opc_lconst_1, opc_ldc, opc_ldc_w, opc_ldc2_w, opc_ldiv, opc_lload, opc_lload_0, opc_lload_1, opc_lload_2, opc_lload_3, opc_lmul, opc_lneg, opc_lookupswitch, opc_lor, opc_lrem, opc_lreturn, opc_lshl, opc_lshr, opc_lstore, opc_lstore_0, opc_lstore_1, opc_lstore_2, opc_lstore_3, opc_lsub, opc_lushr, opc_lxor, opc_monitorenter, opc_monitorexit, opc_multianewarray, opc_new, opc_newarray, opc_nop, opc_pop, opc_pop2, opc_putfield, opc_putstatic, opc_ret, opc_return, opc_saload, opc_sastore, opc_sipush, opc_swap, opc_tableswitch, opc_try, opc_wide, opcLengths, opcNames, SIG_ARRAY, SIG_BOOLEAN, SIG_BYTE, SIG_CHAR, SIG_CLASS, SIG_DOUBLE, SIG_ENDCLASS, SIG_ENDMETHOD, SIG_FLOAT, SIG_INT, SIG_LONG, SIG_METHOD, SIG_PACKAGE, SIG_SHORT, SIG_VOID, SIGC_ARRAY, SIGC_BOOLEAN, SIGC_BYTE, SIGC_CHAR, SIGC_CLASS, SIGC_DOUBLE, SIGC_ENDCLASS, SIGC_ENDMETHOD, SIGC_FLOAT, SIGC_INT, SIGC_LONG, SIGC_METHOD, SIGC_PACKAGE, SIGC_SHORT, SIGC_VOID, T_BOOLEAN, T_BYTE, T_CHAR, T_CLASS, T_DOUBLE, T_FLOAT, T_INT, T_LONG, T_SHORT
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedCompoundType(ContextStack stack, int typeCode, ClassDefinition classDef)Create a CompoundType instance for the given class.protectedCompoundType(ContextStack stack, ClassDefinition classDef, int typeCode)Create a CompoundType instance for the given class.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description protected booleanaddAllMembers(java.util.Vector<CompoundType.Member> allMembers, boolean onlyConformingConstants, boolean quiet, ContextStack stack)protected java.util.Vector<CompoundType.Method>addAllMethods(ClassDefinition current, java.util.Vector<CompoundType.Method> directMethods, boolean noMultiInheritedMethods, boolean quiet, ContextStack stack)protected booleanaddConformingConstants(java.util.Vector<CompoundType.Member> allMembers, boolean quiet, ContextStack stack)protected java.util.Vector<InterfaceType>addNonRemoteInterfaces(java.util.Vector<InterfaceType> list, ContextStack stack)protected java.util.Vector<InterfaceType>addRemoteInterfaces(java.util.Vector<InterfaceType> list, boolean allowNonConforming, ContextStack stack)protected booleanaddTypes(int typeCodeFilter, java.util.HashSet<Type> checked, java.util.Vector<Type> matching)protected booleanassertNotImpl(Type type, boolean quiet, ContextStack stack, CompoundType enclosing, boolean dataMember)protected voiddestroy()Release all resources.(package private) static CompoundTypeforCompound(ClassDefinition classDef, ContextStack stack)Create a CompoundType object for the given class.ClassDeclarationgetClassDeclaration()Return the ClassDeclaration for this type.ClassDefinitiongetClassDefinition()Return the ClassDefinition for this type.java.lang.StringgetIDLExceptionName()If this type represents an exception, return the IDL name including the "Ex" mangling, otherwise return null.InterfaceType[]getInterfaces()Return an array of interfaces directly implemented by this type.CompoundType.Member[]getMembers()Return an array of Type.Member objects representing all of the data members directly implemented by this interface.protected ValueType[]getMethodExceptions(MemberDefinition member, boolean quiet, ContextStack stack)CompoundType.Method[]getMethods()Return an array of Type.Method objects representing all of the methods implemented directly by this type.java.lang.StringgetQualifiedIDLExceptionName(boolean global)If this type represents an exception, return the qualified IDL name including the "Ex" mangling, otherwise return null.java.lang.StringgetSignature()Return signature for this type (e.g.ClassTypegetSuperclass()Return the parent class of this type.protected static java.lang.StringgetVisibilityString(MemberDefinition member)protected booleaninheritsFrom(ContextStack stack, ClassDefinition def, ClassDefinition otherDef)protected booleaninitialize(java.util.Vector<InterfaceType> directInterfaces, java.util.Vector<CompoundType.Method> directMethods, java.util.Vector<CompoundType.Member> directMembers, ContextStack stack, boolean quiet)Initialize this instance.booleanisAbstractBase()Return true if this type is a CORBA abstract interface.booleanisBoxed()Return true ifisIDLEntity() && !isValueBase() && !isAbstractBase() && !isCORBAObject() && !isIDLEntityException().booleanisCheckedException()Return true if this type is a "checked" exception.private booleanisConformingConstantType(MemberDefinition member)private booleanisConformingConstantType(Type theType, MemberDefinition member)protected booleanisConformingRemoteMethod(CompoundType.Method method, boolean quiet)booleanisCORBAObject()Return true if this type implements org.omg.CORBA.Object.booleanisCORBAUserException()Return true if this type is exactly org.omg.CORBA.UserException.booleanisException()Return true if this type is an exception.booleanisIDLEntity()Return true if this type implements org.omg.CORBA.portable.IDLEntity.booleanisIDLEntityException()Return true if this type implementsisIDLEntity() && isException().protected booleanisIDLEntityException(Type type, CompoundType.Method method, boolean quiet)static booleanisRemoteException(ClassType ex, BatchEnvironment env)booleanisRemoteExceptionOrSubclass()Return true if this type is a java.rmi.RemoteException or one of its subclasses.booleanisValueBase()Return true if this type implements org.omg.CORBA.portable.ValueBase.protected java.lang.Class<?>loadClass()protected static TypemakeType(Type theType, ClassDefinition classDef, ContextStack stack)protected booleanprintExtends(IndentingWriter writer, boolean useQualifiedNames, boolean useIDLNames, boolean globalIDLNames)protected voidprintImplements(IndentingWriter writer, java.lang.String prefix, boolean useQualifiedNames, boolean useIDLNames, boolean globalIDLNames)protected voidprintMembers(IndentingWriter writer, boolean useQualifiedNames, boolean useIDLNames, boolean globalIDLNames)protected voidprintMethod(CompoundType.Method it, IndentingWriter writer, boolean useQualifiedNames, boolean useIDLNames, boolean globalIDLNames)protected voidprintMethods(IndentingWriter writer, boolean useQualifiedNames, boolean useIDLNames, boolean globalIDLNames)private voidsetFlags()protected voidswapInvalidTypes()Convert all invalid types to valid ones.protected java.util.Vector<CompoundType.Method>updateParentClassMethods(ClassDefinition current, java.util.Vector<CompoundType.Method> currentMethods, boolean quiet, ContextStack stack)-
Methods inherited from class org.glassfish.rmic.iiop.Type
classNotFound, classNotFound, clone, collectMatching, collectMatching, countTypes, equals, failedConstraint, failedConstraint, failedConstraint, failedConstraint, getArrayBrackets, getArrayDimension, getBoxedRepositoryID, getClassInstance, getElementName, getElementType, getEnv, getFullTypeCode, getIdentifier, getIDLModuleNames, getIDLName, getName, getPackageName, getQualifiedIDLName, getQualifiedName, getRepositoryID, getRootTypeCode, getStatus, getType, getType, getTypeCode, getTypeCodeModifiers, getTypeDescription, getTypeName, getValidType, isArray, isClass, isCompound, isConforming, isInner, isInterface, isPrimitive, isSpecialClass, isSpecialInterface, isType, print, print, print, println, printPackageClose, printPackageOpen, printTypeName, putInvalidType, putType, putType, removeInvalidTypes, removeType, removeType, resetTypes, setIDLNames, setNames, setRepositoryID, setStatus, setTypeCode, toString, typeMatches, updateAllInvalidTypes
-
-
-
-
Field Detail
-
methods
protected CompoundType.Method[] methods
-
interfaces
protected InterfaceType[] interfaces
-
members
protected CompoundType.Member[] members
-
classDef
protected ClassDefinition classDef
-
classDecl
protected ClassDeclaration classDecl
-
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 implementsisIDLEntity() && isException().
-
isBoxed
public boolean isBoxed()
Return true ifisIDLEntity() && !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:
getSignaturein classType
-
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.
-
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()
-
initialize
protected boolean initialize(java.util.Vector<InterfaceType> directInterfaces, java.util.Vector<CompoundType.Method> directMethods, java.util.Vector<CompoundType.Member> directMembers, ContextStack stack, boolean quiet)
Initialize this instance.
-
makeType
protected static Type makeType(Type theType, ClassDefinition classDef, ContextStack stack)
-
isRemoteException
public static boolean isRemoteException(ClassType ex, BatchEnvironment env)
-
isConformingRemoteMethod
protected boolean isConformingRemoteMethod(CompoundType.Method method, boolean quiet) throws ClassNotFound
- Throws:
ClassNotFound
-
isIDLEntityException
protected boolean isIDLEntityException(Type type, CompoundType.Method method, boolean quiet) throws ClassNotFound
- Throws:
ClassNotFound
-
swapInvalidTypes
protected void swapInvalidTypes()
Convert all invalid types to valid ones.- Overrides:
swapInvalidTypesin classType
-
addTypes
protected boolean addTypes(int typeCodeFilter, java.util.HashSet<Type> checked, java.util.Vector<Type> matching)
-
isConformingConstantType
private boolean isConformingConstantType(MemberDefinition member)
-
isConformingConstantType
private boolean isConformingConstantType(Type theType, MemberDefinition member)
-
updateParentClassMethods
protected java.util.Vector<CompoundType.Method> updateParentClassMethods(ClassDefinition current, java.util.Vector<CompoundType.Method> currentMethods, boolean quiet, ContextStack stack) throws ClassNotFound
- Throws:
ClassNotFound
-
addAllMethods
protected java.util.Vector<CompoundType.Method> addAllMethods(ClassDefinition current, java.util.Vector<CompoundType.Method> directMethods, boolean noMultiInheritedMethods, boolean quiet, ContextStack stack) throws ClassNotFound
- Throws:
ClassNotFound
-
inheritsFrom
protected boolean inheritsFrom(ContextStack stack, ClassDefinition def, ClassDefinition otherDef) throws ClassNotFound
- Throws:
ClassNotFound
-
addRemoteInterfaces
protected java.util.Vector<InterfaceType> addRemoteInterfaces(java.util.Vector<InterfaceType> list, boolean allowNonConforming, ContextStack stack) throws ClassNotFound
- Throws:
ClassNotFound
-
addNonRemoteInterfaces
protected java.util.Vector<InterfaceType> addNonRemoteInterfaces(java.util.Vector<InterfaceType> list, ContextStack stack) throws ClassNotFound
- Throws:
ClassNotFound
-
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)
-
-