Package org.gjt.jclasslib.structures.constants

Examples of org.gjt.jclasslib.structures.constants.ConstantClassInfo


        final CPInfo[] constantPool = this.classFile.getConstantPool();

        for (CPInfo cpInfo : constantPool) {
            if (cpInfo instanceof ConstantClassInfo) {

                final ConstantClassInfo i = (ConstantClassInfo) cpInfo;

                String dependencyName = null;
                boolean isIrrelevant = false;

                // Check found dependency
                try {
                    dependencyName = i.getName().replaceAll("/", ".");

                    if (dependencyName.startsWith("[")) continue;

                    // If this line returns the class was found and is probably irrelevant
                    // FIXME: Also classes of this application are found!
View Full Code Here


    public void show(TreePath treePath) {
       
        int constantPoolIndex = constantPoolIndex(treePath);

        try {
            ConstantClassInfo entry = (ConstantClassInfo)services.getClassFile().getConstantPoolEntry(constantPoolIndex, ConstantClassInfo.class);
            classElementOpener.setCPInfo(entry);

            constantPoolHyperlink(lblClass,
                                  lblClassVerbose,
                                  entry.getNameIndex());
       
        } catch (InvalidByteCodeException ex) {
            lblClassVerbose.setText(MESSAGE_INVALID_CONSTANT_POOL_ENTRY);
        }
       
View Full Code Here

    public void show(TreePath treePath) {
       
        int constantPoolIndex = constantPoolIndex(treePath);

        try {
            ConstantClassInfo entry = (ConstantClassInfo)services.getClassFile().getConstantPoolEntry(constantPoolIndex, ConstantClassInfo.class);
            classElementOpener.setCPInfo(entry);

            constantPoolHyperlink(lblClass,
                                  lblClassVerbose,
                                  entry.getNameIndex());
       
        } catch (InvalidByteCodeException ex) {
            lblClassVerbose.setText(MESSAGE_INVALID_CONSTANT_POOL_ENTRY);
        }
       
View Full Code Here

TOP

Related Classes of org.gjt.jclasslib.structures.constants.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.