Package org.gjt.jclasslib.structures

Examples of org.gjt.jclasslib.structures.Annotation


        typePathEntries = new TypePathEntry[typePathLength];
        for (int i = 0; i < typePathLength; i++) {
            typePathEntries[i] = new TypePathEntry();
            typePathEntries[i].read(in);
        }
        annotation = new Annotation();
        annotation.read(in);
        if (debug) {
            debug("read ");
        }
    }
View Full Code Here


        int runtimeVisibleAnnotationsLength = in.readUnsignedShort();

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

        if (debug) {
View Full Code Here

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

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

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

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

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

    public void read(DataInput in) throws InvalidByteCodeException, IOException {

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

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

TOP

Related Classes of org.gjt.jclasslib.structures.Annotation

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.