Package org.apache.harmony.pack200.bytecode

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


        .getAttributeLayout(AttributeLayout.ATTRIBUTE_SOURCE_FILE,
            AttributeLayout.CONTEXT_CLASS);
    if (SOURCE_FILE.matches(classBands.getClassFlags()[classNum])) {
      String fileName = fullName.substring(i) + ".java";
      classFile.attributes = new Attribute[] { (Attribute) cp
          .add(new SourceFileAttribute(fileName)) };
    } else {
      classFile.attributes = new Attribute[] {};
    }
    // this/superclass
    ClassFileEntry cfThis = cp.add(new CPClass(fullName));
View Full Code Here


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

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

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

        public CPLong cpLongValue(int index) {
            return new CPLong(new Long(21L), index);
        }
View Full Code Here

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

        public CPLong cpLongValue(int index) {
            return new CPLong(new Long(21L), index);
        }
View Full Code Here

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

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

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

        public CPLong cpLongValue(int index) {
            return new CPLong(new Long(21L), index);
        }
View Full Code Here

        return cpString;
    }

    public CPLong cpLongValue(int index) {
        Long l = new Long(cpLong[index]);
        CPLong cpLong = (CPLong) longsToCPLongs.get(l);
        if (cpLong == null) {
            cpLong = new CPLong(l, index + longOffset);
            longsToCPLongs.put(l, cpLong);
        }
        return cpLong;
    }
View Full Code Here

        return cpString;
    }

    public CPLong cpLongValue(int index) {
        Long l = new Long(cpLong[index]);
        CPLong cpLong = (CPLong) longsToCPLongs.get(l);
        if (cpLong == null) {
            cpLong = new CPLong(l, index + longOffset);
            longsToCPLongs.put(l, cpLong);
        }
        return cpLong;
    }
View Full Code Here

        return cpString;
    }

    public CPLong cpLongValue(int index) {
        Long l = new Long(cpLong[index]);
        CPLong cpLong = (CPLong) longsToCPLongs.get(l);
        if (cpLong == null) {
            cpLong = new CPLong(l, index + longOffset);
            longsToCPLongs.put(l, cpLong);
        }
        return cpLong;
    }
View Full Code Here

        return cpString;
    }

    public CPLong cpLongValue(int index) {
        Long l = new Long(cpLong[index]);
        CPLong cpLong = (CPLong) longsToCPLongs.get(l);
        if (cpLong == null) {
            cpLong = new CPLong(l, index + longOffset);
            longsToCPLongs.put(l, cpLong);
        }
        return cpLong;
    }
View Full Code Here

TOP

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

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.