Java Code Examples for sun.tools.java.ClassDefinition#getClassDeclaration()
The following examples show how to use
sun.tools.java.ClassDefinition#getClassDeclaration() .
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: CompoundType.java From jdk8u60 with GNU General Public License v2.0 | 6 votes |
/** * Create a CompoundType instance for the given class. NOTE: This constructor * is ONLY for SpecialClassType and SpecialInterfaceType. */ protected CompoundType(ContextStack stack, int typeCode, ClassDefinition classDef) { super(stack,typeCode); this.classDef = classDef; classDecl = classDef.getClassDeclaration(); interfaces = new InterfaceType[0]; methods = new Method[0]; members = new Member[0]; // If we are an inner class/interface, reset the type codes... if (classDef.isInnerClass()) { setTypeCode(typeCode | TM_INNER); } // Set special flags... setFlags(); }
Example 2
Source File: CompoundType.java From openjdk-8-source with GNU General Public License v2.0 | 6 votes |
/** * Create a CompoundType instance for the given class. NOTE: This constructor * is ONLY for SpecialClassType and SpecialInterfaceType. */ protected CompoundType(ContextStack stack, int typeCode, ClassDefinition classDef) { super(stack,typeCode); this.classDef = classDef; classDecl = classDef.getClassDeclaration(); interfaces = new InterfaceType[0]; methods = new Method[0]; members = new Member[0]; // If we are an inner class/interface, reset the type codes... if (classDef.isInnerClass()) { setTypeCode(typeCode | TM_INNER); } // Set special flags... setFlags(); }
Example 3
Source File: CompoundType.java From TencentKona-8 with GNU General Public License v2.0 | 6 votes |
/** * Create a CompoundType instance for the given class. NOTE: This constructor * is ONLY for SpecialClassType and SpecialInterfaceType. */ protected CompoundType(ContextStack stack, int typeCode, ClassDefinition classDef) { super(stack,typeCode); this.classDef = classDef; classDecl = classDef.getClassDeclaration(); interfaces = new InterfaceType[0]; methods = new Method[0]; members = new Member[0]; // If we are an inner class/interface, reset the type codes... if (classDef.isInnerClass()) { setTypeCode(typeCode | TM_INNER); } // Set special flags... setFlags(); }
Example 4
Source File: CompoundType.java From openjdk-jdk9 with GNU General Public License v2.0 | 6 votes |
/** * Create a CompoundType instance for the given class. NOTE: This constructor * is ONLY for SpecialClassType and SpecialInterfaceType. */ protected CompoundType(ContextStack stack, int typeCode, ClassDefinition classDef) { super(stack,typeCode); this.classDef = classDef; classDecl = classDef.getClassDeclaration(); interfaces = new InterfaceType[0]; methods = new Method[0]; members = new Member[0]; // If we are an inner class/interface, reset the type codes... if (classDef.isInnerClass()) { setTypeCode(typeCode | TM_INNER); } // Set special flags... setFlags(); }
Example 5
Source File: CompoundType.java From openjdk-8 with GNU General Public License v2.0 | 6 votes |
/** * Create a CompoundType instance for the given class. NOTE: This constructor * is ONLY for SpecialClassType and SpecialInterfaceType. */ protected CompoundType(ContextStack stack, int typeCode, ClassDefinition classDef) { super(stack,typeCode); this.classDef = classDef; classDecl = classDef.getClassDeclaration(); interfaces = new InterfaceType[0]; methods = new Method[0]; members = new Member[0]; // If we are an inner class/interface, reset the type codes... if (classDef.isInnerClass()) { setTypeCode(typeCode | TM_INNER); } // Set special flags... setFlags(); }
Example 6
Source File: CompoundType.java From hottub with GNU General Public License v2.0 | 6 votes |
/** * Create a CompoundType instance for the given class. NOTE: This constructor * is ONLY for SpecialClassType and SpecialInterfaceType. */ protected CompoundType(ContextStack stack, int typeCode, ClassDefinition classDef) { super(stack,typeCode); this.classDef = classDef; classDecl = classDef.getClassDeclaration(); interfaces = new InterfaceType[0]; methods = new Method[0]; members = new Member[0]; // If we are an inner class/interface, reset the type codes... if (classDef.isInnerClass()) { setTypeCode(typeCode | TM_INNER); } // Set special flags... setFlags(); }
Example 7
Source File: ValueType.java From TencentKona-8 with GNU General Public License v2.0 | 5 votes |
/** * Initialize this instance. */ private static boolean couldBeValue(ContextStack stack, ClassDefinition classDef) { boolean result = false; ClassDeclaration classDecl = classDef.getClassDeclaration(); BatchEnvironment env = stack.getEnv(); try { // Make sure it's not remote... if (env.defRemote.implementedBy(env, classDecl)) { failedConstraint(10,false,stack,classDef.getName()); } else { // Make sure it's Serializable... if (!env.defSerializable.implementedBy(env, classDecl)) { failedConstraint(11,false,stack,classDef.getName()); } else { result = true; } } } catch (ClassNotFound e) { classNotFound(stack,e); } return result; }
Example 8
Source File: ValueType.java From jdk8u60 with GNU General Public License v2.0 | 5 votes |
/** * Initialize this instance. */ private static boolean couldBeValue(ContextStack stack, ClassDefinition classDef) { boolean result = false; ClassDeclaration classDecl = classDef.getClassDeclaration(); BatchEnvironment env = stack.getEnv(); try { // Make sure it's not remote... if (env.defRemote.implementedBy(env, classDecl)) { failedConstraint(10,false,stack,classDef.getName()); } else { // Make sure it's Serializable... if (!env.defSerializable.implementedBy(env, classDecl)) { failedConstraint(11,false,stack,classDef.getName()); } else { result = true; } } } catch (ClassNotFound e) { classNotFound(stack,e); } return result; }
Example 9
Source File: ValueType.java From openjdk-8-source with GNU General Public License v2.0 | 5 votes |
/** * Initialize this instance. */ private static boolean couldBeValue(ContextStack stack, ClassDefinition classDef) { boolean result = false; ClassDeclaration classDecl = classDef.getClassDeclaration(); BatchEnvironment env = stack.getEnv(); try { // Make sure it's not remote... if (env.defRemote.implementedBy(env, classDecl)) { failedConstraint(10,false,stack,classDef.getName()); } else { // Make sure it's Serializable... if (!env.defSerializable.implementedBy(env, classDecl)) { failedConstraint(11,false,stack,classDef.getName()); } else { result = true; } } } catch (ClassNotFound e) { classNotFound(stack,e); } return result; }
Example 10
Source File: ValueType.java From hottub with GNU General Public License v2.0 | 5 votes |
/** * Initialize this instance. */ private static boolean couldBeValue(ContextStack stack, ClassDefinition classDef) { boolean result = false; ClassDeclaration classDecl = classDef.getClassDeclaration(); BatchEnvironment env = stack.getEnv(); try { // Make sure it's not remote... if (env.defRemote.implementedBy(env, classDecl)) { failedConstraint(10,false,stack,classDef.getName()); } else { // Make sure it's Serializable... if (!env.defSerializable.implementedBy(env, classDecl)) { failedConstraint(11,false,stack,classDef.getName()); } else { result = true; } } } catch (ClassNotFound e) { classNotFound(stack,e); } return result; }
Example 11
Source File: ValueType.java From openjdk-jdk8u with GNU General Public License v2.0 | 5 votes |
/** * Initialize this instance. */ private static boolean couldBeValue(ContextStack stack, ClassDefinition classDef) { boolean result = false; ClassDeclaration classDecl = classDef.getClassDeclaration(); BatchEnvironment env = stack.getEnv(); try { // Make sure it's not remote... if (env.defRemote.implementedBy(env, classDecl)) { failedConstraint(10,false,stack,classDef.getName()); } else { // Make sure it's Serializable... if (!env.defSerializable.implementedBy(env, classDecl)) { failedConstraint(11,false,stack,classDef.getName()); } else { result = true; } } } catch (ClassNotFound e) { classNotFound(stack,e); } return result; }
Example 12
Source File: ValueType.java From openjdk-8 with GNU General Public License v2.0 | 5 votes |
/** * Initialize this instance. */ private static boolean couldBeValue(ContextStack stack, ClassDefinition classDef) { boolean result = false; ClassDeclaration classDecl = classDef.getClassDeclaration(); BatchEnvironment env = stack.getEnv(); try { // Make sure it's not remote... if (env.defRemote.implementedBy(env, classDecl)) { failedConstraint(10,false,stack,classDef.getName()); } else { // Make sure it's Serializable... if (!env.defSerializable.implementedBy(env, classDecl)) { failedConstraint(11,false,stack,classDef.getName()); } else { result = true; } } } catch (ClassNotFound e) { classNotFound(stack,e); } return result; }
Example 13
Source File: ValueType.java From openjdk-jdk8u-backup with GNU General Public License v2.0 | 5 votes |
/** * Initialize this instance. */ private static boolean couldBeValue(ContextStack stack, ClassDefinition classDef) { boolean result = false; ClassDeclaration classDecl = classDef.getClassDeclaration(); BatchEnvironment env = stack.getEnv(); try { // Make sure it's not remote... if (env.defRemote.implementedBy(env, classDecl)) { failedConstraint(10,false,stack,classDef.getName()); } else { // Make sure it's Serializable... if (!env.defSerializable.implementedBy(env, classDecl)) { failedConstraint(11,false,stack,classDef.getName()); } else { result = true; } } } catch (ClassNotFound e) { classNotFound(stack,e); } return result; }
Example 14
Source File: ValueType.java From openjdk-jdk9 with GNU General Public License v2.0 | 5 votes |
/** * Initialize this instance. */ private static boolean couldBeValue(ContextStack stack, ClassDefinition classDef) { boolean result = false; ClassDeclaration classDecl = classDef.getClassDeclaration(); BatchEnvironment env = stack.getEnv(); try { // Make sure it's not remote... if (env.defRemote.implementedBy(env, classDecl)) { failedConstraint(10,false,stack,classDef.getName()); } else { // Make sure it's Serializable... if (!env.defSerializable.implementedBy(env, classDecl)) { failedConstraint(11,false,stack,classDef.getName()); } else { result = true; } } } catch (ClassNotFound e) { classNotFound(stack,e); } return result; }
Example 15
Source File: CompoundType.java From openjdk-jdk8u-backup with GNU General Public License v2.0 | 4 votes |
/** * Create a CompoundType instance for the given class. The resulting * object is not yet completely initialized. */ protected CompoundType(ContextStack stack, ClassDefinition classDef, int typeCode) { super(stack,typeCode); this.classDef = classDef; classDecl = classDef.getClassDeclaration(); // If we are an inner class/interface, reset the type codes... if (classDef.isInnerClass()) { setTypeCode(typeCode | TM_INNER); } // Set special flags... setFlags(); // Set names... Identifier id = classDef.getName(); String idlName; String[] idlModuleNames; try { // These can fail if we get case-sensitive name matches... idlName = IDLNames.getClassOrInterfaceName(id,env); idlModuleNames = IDLNames.getModuleNames(id,isBoxed(),env); setNames(id,idlModuleNames,idlName); // Is this an exception? if (isException()) { // Yes, so set our mangled exception names... isException = true; idlExceptionName = IDLNames.getExceptionName(getIDLName()); qualifiedIDLExceptionName = IDLNames.getQualifiedName(getIDLModuleNames(),idlExceptionName); } // Set interfaces, methods and members... interfaces = null; // set in initialize() methods = null; // set in initialize() members = null; // set in initialize() } catch (Exception e) { failedConstraint(7,false,stack,id.toString(),e.getMessage()); throw new CompilerError(""); } }
Example 16
Source File: CompoundType.java From openjdk-8-source with GNU General Public License v2.0 | 4 votes |
/** * Create a CompoundType instance for the given class. The resulting * object is not yet completely initialized. */ protected CompoundType(ContextStack stack, ClassDefinition classDef, int typeCode) { super(stack,typeCode); this.classDef = classDef; classDecl = classDef.getClassDeclaration(); // If we are an inner class/interface, reset the type codes... if (classDef.isInnerClass()) { setTypeCode(typeCode | TM_INNER); } // Set special flags... setFlags(); // Set names... Identifier id = classDef.getName(); String idlName; String[] idlModuleNames; try { // These can fail if we get case-sensitive name matches... idlName = IDLNames.getClassOrInterfaceName(id,env); idlModuleNames = IDLNames.getModuleNames(id,isBoxed(),env); setNames(id,idlModuleNames,idlName); // Is this an exception? if (isException()) { // Yes, so set our mangled exception names... isException = true; idlExceptionName = IDLNames.getExceptionName(getIDLName()); qualifiedIDLExceptionName = IDLNames.getQualifiedName(getIDLModuleNames(),idlExceptionName); } // Set interfaces, methods and members... interfaces = null; // set in initialize() methods = null; // set in initialize() members = null; // set in initialize() } catch (Exception e) { failedConstraint(7,false,stack,id.toString(),e.getMessage()); throw new CompilerError(""); } }
Example 17
Source File: CompoundType.java From openjdk-8 with GNU General Public License v2.0 | 4 votes |
/** * Create a CompoundType instance for the given class. The resulting * object is not yet completely initialized. */ protected CompoundType(ContextStack stack, ClassDefinition classDef, int typeCode) { super(stack,typeCode); this.classDef = classDef; classDecl = classDef.getClassDeclaration(); // If we are an inner class/interface, reset the type codes... if (classDef.isInnerClass()) { setTypeCode(typeCode | TM_INNER); } // Set special flags... setFlags(); // Set names... Identifier id = classDef.getName(); String idlName; String[] idlModuleNames; try { // These can fail if we get case-sensitive name matches... idlName = IDLNames.getClassOrInterfaceName(id,env); idlModuleNames = IDLNames.getModuleNames(id,isBoxed(),env); setNames(id,idlModuleNames,idlName); // Is this an exception? if (isException()) { // Yes, so set our mangled exception names... isException = true; idlExceptionName = IDLNames.getExceptionName(getIDLName()); qualifiedIDLExceptionName = IDLNames.getQualifiedName(getIDLModuleNames(),idlExceptionName); } // Set interfaces, methods and members... interfaces = null; // set in initialize() methods = null; // set in initialize() members = null; // set in initialize() } catch (Exception e) { failedConstraint(7,false,stack,id.toString(),e.getMessage()); throw new CompilerError(""); } }
Example 18
Source File: CompoundType.java From openjdk-jdk8u with GNU General Public License v2.0 | 4 votes |
/** * Create a CompoundType instance for the given class. The resulting * object is not yet completely initialized. */ protected CompoundType(ContextStack stack, ClassDefinition classDef, int typeCode) { super(stack,typeCode); this.classDef = classDef; classDecl = classDef.getClassDeclaration(); // If we are an inner class/interface, reset the type codes... if (classDef.isInnerClass()) { setTypeCode(typeCode | TM_INNER); } // Set special flags... setFlags(); // Set names... Identifier id = classDef.getName(); String idlName; String[] idlModuleNames; try { // These can fail if we get case-sensitive name matches... idlName = IDLNames.getClassOrInterfaceName(id,env); idlModuleNames = IDLNames.getModuleNames(id,isBoxed(),env); setNames(id,idlModuleNames,idlName); // Is this an exception? if (isException()) { // Yes, so set our mangled exception names... isException = true; idlExceptionName = IDLNames.getExceptionName(getIDLName()); qualifiedIDLExceptionName = IDLNames.getQualifiedName(getIDLModuleNames(),idlExceptionName); } // Set interfaces, methods and members... interfaces = null; // set in initialize() methods = null; // set in initialize() members = null; // set in initialize() } catch (Exception e) { failedConstraint(7,false,stack,id.toString(),e.getMessage()); throw new CompilerError(""); } }
Example 19
Source File: CompoundType.java From jdk8u60 with GNU General Public License v2.0 | 4 votes |
/** * Create a CompoundType instance for the given class. The resulting * object is not yet completely initialized. */ protected CompoundType(ContextStack stack, ClassDefinition classDef, int typeCode) { super(stack,typeCode); this.classDef = classDef; classDecl = classDef.getClassDeclaration(); // If we are an inner class/interface, reset the type codes... if (classDef.isInnerClass()) { setTypeCode(typeCode | TM_INNER); } // Set special flags... setFlags(); // Set names... Identifier id = classDef.getName(); String idlName; String[] idlModuleNames; try { // These can fail if we get case-sensitive name matches... idlName = IDLNames.getClassOrInterfaceName(id,env); idlModuleNames = IDLNames.getModuleNames(id,isBoxed(),env); setNames(id,idlModuleNames,idlName); // Is this an exception? if (isException()) { // Yes, so set our mangled exception names... isException = true; idlExceptionName = IDLNames.getExceptionName(getIDLName()); qualifiedIDLExceptionName = IDLNames.getQualifiedName(getIDLModuleNames(),idlExceptionName); } // Set interfaces, methods and members... interfaces = null; // set in initialize() methods = null; // set in initialize() members = null; // set in initialize() } catch (Exception e) { failedConstraint(7,false,stack,id.toString(),e.getMessage()); throw new CompilerError(""); } }
Example 20
Source File: CompoundType.java From TencentKona-8 with GNU General Public License v2.0 | 4 votes |
/** * Create a CompoundType instance for the given class. The resulting * object is not yet completely initialized. */ protected CompoundType(ContextStack stack, ClassDefinition classDef, int typeCode) { super(stack,typeCode); this.classDef = classDef; classDecl = classDef.getClassDeclaration(); // If we are an inner class/interface, reset the type codes... if (classDef.isInnerClass()) { setTypeCode(typeCode | TM_INNER); } // Set special flags... setFlags(); // Set names... Identifier id = classDef.getName(); String idlName; String[] idlModuleNames; try { // These can fail if we get case-sensitive name matches... idlName = IDLNames.getClassOrInterfaceName(id,env); idlModuleNames = IDLNames.getModuleNames(id,isBoxed(),env); setNames(id,idlModuleNames,idlName); // Is this an exception? if (isException()) { // Yes, so set our mangled exception names... isException = true; idlExceptionName = IDLNames.getExceptionName(getIDLName()); qualifiedIDLExceptionName = IDLNames.getQualifiedName(getIDLModuleNames(),idlExceptionName); } // Set interfaces, methods and members... interfaces = null; // set in initialize() methods = null; // set in initialize() members = null; // set in initialize() } catch (Exception e) { failedConstraint(7,false,stack,id.toString(),e.getMessage()); throw new CompilerError(""); } }