Examples of CPFloat


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

        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 CPFloat(new Float(reference[index]));
        }
        return result;
    }
View Full Code Here

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

        } 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) {
            return new CPDouble(new Double(bands.getCpDouble()[index]));
        } else if (cp == CP_STRING) {
View Full Code Here

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

    CPDouble cp2 = new CPDouble(new Double(3));
    CPDouble cp3 = new CPDouble(new Double(5));
    checkEquality(cp1,cp2,"3",cp3); //$NON-NLS-1$
  }
  public void testCPFloat() {
    CPFloat cp1 = new CPFloat(new Float(3));
    CPFloat cp2 = new CPFloat(new Float(3));
    CPFloat cp3 = new CPFloat(new Float(5));
    checkEquality(cp1,cp2,"3",cp3); //$NON-NLS-1$
  }
View Full Code Here

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

        } 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) {
            return new CPDouble(new Double(bands.getCpDouble()[index]));
        } else if (cp == CP_STRING) {
View Full Code Here

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

        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 CPFloat(new Float(reference[index]));
        }
        return result;
    }
View Full Code Here

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

    CPDouble cp2 = new CPDouble(new Double(3));
    CPDouble cp3 = new CPDouble(new Double(5));
    checkEquality(cp1,cp2,"3",cp3); //$NON-NLS-1$
  }
  public void testCPFloat() {
    CPFloat cp1 = new CPFloat(new Float(3));
    CPFloat cp2 = new CPFloat(new Float(3));
    CPFloat cp3 = new CPFloat(new Float(5));
    checkEquality(cp1,cp2,"3",cp3); //$NON-NLS-1$
  }
View Full Code Here

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

        CPDouble cp3 = new CPDouble(new Double(5), 5);
        checkEquality(cp1, cp2, "3", cp3); //$NON-NLS-1$
    }

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

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

        public CPClass cpClassValue(int index) {
            return cpClass;
        }

        public CPFloat cpFloatValue(int index) {
            return new CPFloat(new Float(2.5F), index);
        }
View Full Code Here

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

        public CPClass cpClassValue(int index) {
            return cpClass;
        }

        public CPFloat cpFloatValue(int index) {
            return new CPFloat(new Float(2.5F), index);
        }
View Full Code Here

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

        CPDouble cp3 = new CPDouble(new Double(5), 5);
        checkEquality(cp1, cp2, "3", cp3); //$NON-NLS-1$
    }

    public void testCPFloat() {
        CPFloat cp1 = new CPFloat(new Float(3), 3);
        CPFloat cp2 = new CPFloat(new Float(3), 3);
        CPFloat cp3 = new CPFloat(new Float(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.