Examples of CPClass


Examples of org.apache.harmony.unpack200.bytecode.CPClass

    public CPClass cpClassValue(int index) {
        String string = cpClass[index];
        int utf8Index = cpClassInts[index];
        int globalIndex = classOffset + index;
        CPClass cpString = (CPClass) stringsToCPClass.get(string);
        if (cpString == null) {
            cpString = new CPClass(cpUTF8Value(utf8Index,
                    ClassConstantPool.DOMAIN_NORMALASCIIZ), globalIndex);
            stringsToCPClass.put(string, cpString);
        }
        return cpString;
    }
View Full Code Here

Examples of org.apache.harmony.unpack200.bytecode.CPClass

        }
        return cpString;
    }

    public CPClass cpClassValue(String string) {
        CPClass cpString = (CPClass) stringsToCPClass.get(string);
        if (cpString == null) {
            int index = search(cpClass, string);
            if(index != -1) {
                return cpClassValue(index);
            }
            cpString = new CPClass(cpUTF8Value(string,
                    ClassConstantPool.DOMAIN_NORMALASCIIZ, false), -1);
            stringsToCPClass.put(string, cpString);
        }
        return cpString;
    }
View Full Code Here

Examples of org.apache.harmony.unpack200.bytecode.CPClass

                }
                classAttributes[i].add(new SourceFileAttribute((CPUTF8)value));
                sourceFileIndex++;
            }
            if (enclosingMethodLayout.matches(flag)) {
                CPClass theClass = cpBands
                        .cpClassValue(enclosingMethodRC[enclosingMethodIndex]);
                CPNameAndType theMethod = cpBands
                        .cpNameAndTypeValue(enclosingMethodRDN[enclosingMethodIndex]);
                classAttributes[i].add(new EnclosingMethodAttribute(theClass,
                        theMethod));
View Full Code Here

Examples of org.apache.harmony.unpack200.bytecode.CPClass

                            .getClassSuperInts()[c]]);
                    List exceptionTable = new ArrayList();
                    if (handlerCount != null) {
                        for (int j = 0; j < handlerCount[i]; j++) {
                            int handlerClass = handlerClassTypes[i][j] - 1;
                            CPClass cpHandlerClass = null;
                            if (handlerClass != -1) {
                                // The handlerClass will be null if the
                                // catch is a finally (that is, the
                                // exception table catch_type should be 0
                                cpHandlerClass = segment.getCpBands()
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.