Java Code Examples for sun.tools.java.ClassDefinition#isInnerClass()

The following examples show how to use sun.tools.java.ClassDefinition#isInnerClass() . 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 TencentKona-8 with GNU General Public License v2.0 6 votes vote down vote up
/**
 * 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 jdk8u60 with GNU General Public License v2.0 6 votes vote down vote up
/**
 * 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 openjdk-jdk8u with GNU General Public License v2.0 6 votes vote down vote up
/**
 * 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-jdk8u-backup with GNU General Public License v2.0 6 votes vote down vote up
/**
 * 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-jdk9 with GNU General Public License v2.0 6 votes vote down vote up
/**
 * 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 vote down vote up
/**
 * 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: CompoundType.java    From openjdk-8-source with GNU General Public License v2.0 6 votes vote down vote up
/**
 * 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 8
Source File: CompoundType.java    From openjdk-8 with GNU General Public License v2.0 6 votes vote down vote up
/**
 * 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 9
Source File: CompoundType.java    From TencentKona-8 with GNU General Public License v2.0 4 votes vote down vote up
/**
 * 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 10
Source File: CompoundType.java    From jdk8u60 with GNU General Public License v2.0 4 votes vote down vote up
/**
 * 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 11
Source File: CompoundType.java    From openjdk-jdk8u with GNU General Public License v2.0 4 votes vote down vote up
/**
 * 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 12
Source File: CompoundType.java    From openjdk-jdk8u-backup with GNU General Public License v2.0 4 votes vote down vote up
/**
 * 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 13
Source File: CompoundType.java    From openjdk-jdk9 with GNU General Public License v2.0 4 votes vote down vote up
/**
 * 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 14
Source File: CompoundType.java    From hottub with GNU General Public License v2.0 4 votes vote down vote up
/**
 * 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 15
Source File: CompoundType.java    From openjdk-8-source with GNU General Public License v2.0 4 votes vote down vote up
/**
 * 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 with GNU General Public License v2.0 4 votes vote down vote up
/**
 * 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("");
    }
}