Package org.apache.harmony.pack200.bytecode

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


        }
        return cpString;
    }

    public CPClass cpClassValue(String string) {
        CPClass cpString = (CPClass) stringsToCPClass.get(string);
        if (cpString == null) {
          Integer index = (Integer)mapClass.get(string);
          if(index != null) {
            return cpClassValue(index.intValue());
            }
            cpString = new CPClass(cpUTF8Value(string, false), -1);
            stringsToCPClass.put(string, cpString);
        }
        return cpString;
    }
View Full Code Here


        while (changed) {
            changed = false;
            for (int allTupleIndex = 0; allTupleIndex < allTuplesSize; allTupleIndex++) {
                for(int cpcIndex = 0; cpcIndex < classPoolClasses.size(); cpcIndex++) {
                    CPClass classInPool = (CPClass) classPoolClasses.get(cpcIndex);
                    String poolClassName = classInPool.name;
                    if (poolClassName.equals(allTuples[allTupleIndex]
                            .thisClassString())) {
                        // If the tuple isn't already in there, then add it
                        if (relevantTuplesContains.add(allTuples[allTupleIndex])) {
View Full Code Here

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

                            .getClassBands().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

        while (changed) {
            changed = false;
            for (int allTupleIndex = 0; allTupleIndex < allTuplesSize; allTupleIndex++) {
                Iterator it = classPoolClasses.iterator();
                while (it.hasNext()) {
                    CPClass classInPool = (CPClass) it.next();
                    String poolClassName = classInPool.name;
                    if (poolClassName.equals(allTuples[allTupleIndex]
                            .thisClassString())) {
                        // If the tuple isn't already in there, then add it
                        if (relevantTuples.indexOf(allTuples[allTupleIndex]) == -1) {
View Full Code Here

           
            String innerClassString = ic_stored[index].thisClassString();
            String outerClassString = ic_stored[index].outerClassString();
            String simpleClassName = ic_stored[index].simpleClassName();

            CPClass innerClass = null;
            CPUTF8 innerName = null;
            CPClass outerClass = null;

            innerClass = innerClassIndex != -1 ? cpBands
                    .cpClassValue(innerClassIndex) : cpBands
                    .cpClassValue(innerClassString);
            if (!ic_stored[index].isAnonymous()) {
View Full Code Here

    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

        }
        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

                }
                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

                            .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

Related Classes of org.apache.harmony.pack200.bytecode.CPClass

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.