Package org.gjt.jclasslib.structures.elementvalues

Examples of org.gjt.jclasslib.structures.elementvalues.AnnotationElementValue


        super.read(in);

        int runtimeVisibleAnnotationsLength = in.readUnsignedShort();
        runtimeAnnotations = new AnnotationElementValue[runtimeVisibleAnnotationsLength];
        for (int i = 0; i < runtimeVisibleAnnotationsLength; i++) {
            runtimeAnnotations[i] = new AnnotationElementValue();
            runtimeAnnotations[i].setClassFile(classFile);
            runtimeAnnotations[i].read(in);
        }

        if (debug) debug("read ");
View Full Code Here


        addDetailPaneEntry(normalLabel("Number of entries:"),
                lblValuePairEntries = highlightLabel());
    }

    public void show(TreePath treePath) {
        AnnotationElementValue annotation = (AnnotationElementValue)
                ((BrowserTreeNode)treePath.getLastPathComponent()).getElement();

        lblTag.setText(String.valueOf((char)annotation.getTag()));
        lblTagVerbose.setText("<" + ElementValue.getTagDescription(annotation.getTag()) + ">");

        constantPoolHyperlink(lblType,
                lblTypeVerbose,
                annotation.getTypeIndex());

        lblValuePairEntries.setText(String.valueOf(annotation.getElementValuePairEntries().length));

        super.show(treePath);
    }
View Full Code Here

TOP

Related Classes of org.gjt.jclasslib.structures.elementvalues.AnnotationElementValue

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.