Examples of CPInteger


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

        for (int i1 = 0; i1 < count; i1++) {
            int index = indices[i1];
            if (index < 0 || index >= reference.length)
                throw new Pack200Exception(
                        "Something has gone wrong during parsing references, index = " + index + ", array size = " + reference.length);
            result[i1] = new CPInteger(new Integer(reference[index]));
        }
        return result;
    }
View Full Code Here

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

        } else if (index < 0) {
            throw new Pack200Exception("Cannot have a negative range");
        } else if (cp == UTF_8) {
            return new CPUTF8(bands.getCpUTF8()[index]);
        } else if (cp == CP_INT) {
            return new CPInteger(new Integer(bands.getCpInt()[index]));
        } else if (cp == CP_FLOAT) {
            return new CPFloat(new Float(bands.getCpFloat()[index]));
        } else if (cp == CP_LONG) {
            return new CPLong(new Long(bands.getCpLong()[index]));
        } else if (cp == CP_DOUBLE) {
View Full Code Here

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

    SourceFileAttribute sfa2 = new SourceFileAttribute(new String("Thing.java")); //$NON-NLS-1$
    SourceFileAttribute sfa3 = new SourceFileAttribute(new String("OtherThing.java")); //$NON-NLS-1$
    checkEquality(sfa1,sfa2,"Thing.java",sfa3); //$NON-NLS-1$
  }
  public void testCPInteger() {
    CPInteger cp1 = new CPInteger(new Integer(3));
    CPInteger cp2 = new CPInteger(new Integer(3));
    CPInteger cp3 = new CPInteger(new Integer(5));
    checkEquality(cp1,cp2,"3",cp3); //$NON-NLS-1$
  }
View Full Code Here

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

        } else if (index < 0) {
            throw new Pack200Exception("Cannot have a negative range");
        } else if (cp == UTF_8) {
            return new CPUTF8(bands.getCpUTF8()[index], ClassConstantPool.DOMAIN_NORMALASCIIZ);
        } else if (cp == CP_INT) {
            return new CPInteger(new Integer(bands.getCpInt()[index]));
        } else if (cp == CP_FLOAT) {
            return new CPFloat(new Float(bands.getCpFloat()[index]));
        } else if (cp == CP_LONG) {
            return new CPLong(new Long(bands.getCpLong()[index]));
        } else if (cp == CP_DOUBLE) {
View Full Code Here

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

        for (int i1 = 0; i1 < count; i1++) {
            int index = indices[i1];
            if (index < 0 || index >= reference.length)
                throw new Pack200Exception(
                        "Something has gone wrong during parsing references, index = " + index + ", array size = " + reference.length);
            result[i1] = new CPInteger(new Integer(reference[index]));
        }
        return result;
    }
View Full Code Here

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

    SourceFileAttribute sfa2 = new SourceFileAttribute(new String("Thing.java")); //$NON-NLS-1$
    SourceFileAttribute sfa3 = new SourceFileAttribute(new String("OtherThing.java")); //$NON-NLS-1$
    checkEquality(sfa1,sfa2,"Thing.java",sfa3); //$NON-NLS-1$
  }
  public void testCPInteger() {
    CPInteger cp1 = new CPInteger(new Integer(3));
    CPInteger cp2 = new CPInteger(new Integer(3));
    CPInteger cp3 = new CPInteger(new Integer(5));
    checkEquality(cp1,cp2,"3",cp3); //$NON-NLS-1$
  }
View Full Code Here

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

                new String("OtherThing.java"), 2)); //$NON-NLS-1$
        checkEquality(sfa1, sfa2, "Thing.java", sfa3); //$NON-NLS-1$
    }

    public void testCPInteger() {
        CPInteger cp1 = new CPInteger(new Integer(3), 3);
        CPInteger cp2 = new CPInteger(new Integer(3), 3);
        CPInteger cp3 = new CPInteger(new Integer(5), 5);
        checkEquality(cp1, cp2, "3", cp3); //$NON-NLS-1$
    }
View Full Code Here

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

        public CPString cpStringValue(int index) {
            return new CPString(cpUTF8, index);
        }

        public CPInteger cpIntegerValue(int index) {
            return new CPInteger(new Integer(21), index);
        }
View Full Code Here

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

        public CPString cpStringValue(int index) {
            return new CPString(cpUTF8, index);
        }

        public CPInteger cpIntegerValue(int index) {
            return new CPInteger(new Integer(21), index);
        }
View Full Code Here

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

                        new String("OtherThing.java"), ClassConstantPool.DOMAIN_NORMALASCIIZ, 2)); //$NON-NLS-1$
        checkEquality(sfa1, sfa2, "Thing.java", sfa3); //$NON-NLS-1$
    }

    public void testCPInteger() {
        CPInteger cp1 = new CPInteger(new Integer(3), 3);
        CPInteger cp2 = new CPInteger(new Integer(3), 3);
        CPInteger cp3 = new CPInteger(new Integer(5), 5);
        checkEquality(cp1, cp2, "3", cp3); //$NON-NLS-1$
    }
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.