Package org.cojen.classfile.constant

Examples of org.cojen.classfile.constant.ConstantClassInfo


     * class.
     *
     * @param dim Number of array dimensions.
     */
    public ConstantClassInfo addConstantClass(String className, int dim) {
        return (ConstantClassInfo)addConstant(new ConstantClassInfo(this, className, dim));
    }
View Full Code Here


   
    /**
     * Get or create a constant from the constant pool representing a class.
     */
    public ConstantClassInfo addConstantClass(TypeDesc type) {
        return (ConstantClassInfo)addConstant(new ConstantClassInfo(this, type));
    }
View Full Code Here

        ConstantInfo ci = null;

        switch (entry.mTag) {
        case ConstantInfo.TAG_CLASS:
            ci = new ConstantClassInfo((ConstantUTFInfo)ci1);
            break;
        case ConstantInfo.TAG_STRING:
            ci = new ConstantStringInfo((ConstantUTFInfo)ci1);
            break;
View Full Code Here

            } else {
                print(String.valueOf(value));
                print("d");
            }
        } else if (constant instanceof ConstantClassInfo) {
            ConstantClassInfo cci = (ConstantClassInfo)constant;
            disassemble(cci.getType());
            if (showClassLiteral) {
                print(".class");
            }
        } else if (constant instanceof ConstantUTFInfo) {
            print("\"");
View Full Code Here

            } else {
                print(String.valueOf(value));
                print("d");
            }
        } else if (constant instanceof ConstantClassInfo) {
            ConstantClassInfo cci = (ConstantClassInfo)constant;
            disassemble(cci.getType());
            if (showClassLiteral) {
                print(".class");
            }
        } else if (constant instanceof ConstantUTFInfo) {
            print("\"");
View Full Code Here

    /**
     * Get or create a constant from the constant pool representing a class.
     */
    public ConstantClassInfo addConstantClass(String className) {
        return (ConstantClassInfo)addConstant(new ConstantClassInfo(this, className));
    }
View Full Code Here

     * class.
     *
     * @param dim Number of array dimensions.
     */
    public ConstantClassInfo addConstantClass(String className, int dim) {
        return (ConstantClassInfo)addConstant(new ConstantClassInfo(this, className, dim));
    }
View Full Code Here

   
    /**
     * Get or create a constant from the constant pool representing a class.
     */
    public ConstantClassInfo addConstantClass(TypeDesc type) {
        return (ConstantClassInfo)addConstant(new ConstantClassInfo(this, type));
    }
View Full Code Here

        ConstantInfo ci = null;

        switch (entry.mTag) {
        case ConstantInfo.TAG_CLASS:
            ci = new ConstantClassInfo((ConstantUTFInfo)ci1);
            break;
        case ConstantInfo.TAG_STRING:
            ci = new ConstantStringInfo((ConstantUTFInfo)ci1);
            break;
View Full Code Here

            throw new IllegalArgumentException("End location is not a label instruction");
        }

        Location catchLocation = createLabel().setLocation();

        ConstantClassInfo catchClass;
        if (catchClassName == null) {
            catchClass = null;
        } else {
            catchClass = mCp.addConstantClass(catchClassName);
        }
View Full Code Here

TOP

Related Classes of org.cojen.classfile.constant.ConstantClassInfo

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.