Examples of CPMember


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

    CPString cp2 = new CPString(new String("3"));
    CPString cp3 = new CPString(new String("5"));
    checkEquality(cp1,cp2,"3",cp3); //$NON-NLS-1$
  }
  public void testCPField() {
    CPMember cp1 = new CPMember("Name:I", 0, null);
    CPMember cp2 = new CPMember("Name:I", 0, null);
    CPMember cp3 = new CPMember("Name:Z", 0, null);
    CPMember cp4 = new CPMember("GName:I", 0, null);
    checkEquality(cp1,cp2,"Name",cp3); //$NON-NLS-1$
    checkEquality(cp1,cp2,"I",cp4); //$NON-NLS-1$
  }
View Full Code Here

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

    pool.add(u1);
    pool.add(u2);
    assertEquals(1,pool.size());
  }
  public void testDuplicateField() {
    CPMember cp1 = new CPMember("name:I",0,null);
    pool.add(cp1);
    assertEquals(2,pool.size());
    CPMember cp2 = new CPMember("name:I",0,null);
    pool.add(cp2);
    assertEquals(2,pool.size());
  }
View Full Code Here

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

    pool.add(u1);
    pool.add(u2);
    assertEquals(1,pool.size());
  }
  public void testDuplicateField() {
    CPMember cp1 = new CPMember("name:I",0,null);
    pool.add(cp1);
    assertEquals(2,pool.size());
    CPMember cp2 = new CPMember("name:I",0,null);
    pool.add(cp2);
    assertEquals(2,pool.size());
  }
View Full Code Here

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

    CPString cp2 = new CPString(new String("3"));
    CPString cp3 = new CPString(new String("5"));
    checkEquality(cp1,cp2,"3",cp3); //$NON-NLS-1$
  }
  public void testCPField() {
    CPMember cp1 = new CPMember("Name:I", 0, null);
    CPMember cp2 = new CPMember("Name:I", 0, null);
    CPMember cp3 = new CPMember("Name:Z", 0, null);
    CPMember cp4 = new CPMember("GName:I", 0, null);
    checkEquality(cp1,cp2,"Name",cp3); //$NON-NLS-1$
    checkEquality(cp1,cp2,"I",cp4); //$NON-NLS-1$
  }
View Full Code Here

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

        pool.add(u2);
        assertEquals(1, pool.size());
    }

    public void testDuplicateField() {
        CPMember cp1 = new CPMember(new CPUTF8("name", 1), new CPUTF8("I", 2),
                0, null);
        pool.add(cp1);
        pool.addNestedEntries();
        assertEquals(2, pool.size());
        CPMember cp2 = new CPMember(new CPUTF8("name", 1), new CPUTF8("I", 2),
                0, null);
        pool.add(cp2);
        pool.addNestedEntries();
        assertEquals(2, pool.size());
    }
View Full Code Here

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

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

    public void testCPField() {
        CPMember cp1 = new CPMember(new CPUTF8("Name", 3), new CPUTF8("I", 4),
                0, null);
        CPMember cp2 = new CPMember(new CPUTF8("Name", 3), new CPUTF8("I", 4),
                0, null);
        CPMember cp3 = new CPMember(new CPUTF8("Name", 3), new CPUTF8("Z", 5),
                0, null);
        CPMember cp4 = new CPMember(new CPUTF8("GName", 6), new CPUTF8("I", 4),
                0, null);
        checkEquality(cp1, cp2, "Name", cp3); //$NON-NLS-1$
        checkEquality(cp1, cp2, "I", cp4); //$NON-NLS-1$
    }
View Full Code Here

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

        pool.add(u2);
        assertEquals(1, pool.size());
    }

    public void testDuplicateField() {
        CPMember cp1 = new CPMember(new CPUTF8("name",
                ClassConstantPool.DOMAIN_NORMALASCIIZ, 1), new CPUTF8("I",
                ClassConstantPool.DOMAIN_NORMALASCIIZ, 2), 0, null);
        pool.add(cp1);
        pool.addNestedEntries();
        assertEquals(2, pool.size());
        CPMember cp2 = new CPMember(new CPUTF8("name",
                ClassConstantPool.DOMAIN_NORMALASCIIZ, 1), new CPUTF8("I",
                ClassConstantPool.DOMAIN_NORMALASCIIZ, 2), 0, null);
        pool.add(cp2);
        pool.addNestedEntries();
        assertEquals(2, pool.size());
View Full Code Here

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

                ClassConstantPool.DOMAIN_NORMALASCIIZ, 5), 5);
        checkEquality(cp1, cp2, "3", cp3); //$NON-NLS-1$
    }

    public void testCPField() {
        CPMember cp1 = new CPMember(new CPUTF8("Name",
                ClassConstantPool.DOMAIN_NORMALASCIIZ, 3), new CPUTF8("I",
                ClassConstantPool.DOMAIN_NORMALASCIIZ, 4), 0, null);
        CPMember cp2 = new CPMember(new CPUTF8("Name",
                ClassConstantPool.DOMAIN_NORMALASCIIZ, 3), new CPUTF8("I",
                ClassConstantPool.DOMAIN_NORMALASCIIZ, 4), 0, null);
        CPMember cp3 = new CPMember(new CPUTF8("Name",
                ClassConstantPool.DOMAIN_NORMALASCIIZ, 3), new CPUTF8("Z",
                ClassConstantPool.DOMAIN_NORMALASCIIZ, 5), 0, null);
        CPMember cp4 = new CPMember(new CPUTF8("GName",
                ClassConstantPool.DOMAIN_NORMALASCIIZ, 6), new CPUTF8("I",
                ClassConstantPool.DOMAIN_NORMALASCIIZ, 4), 0, null);
        checkEquality(cp1, cp2, "Name", cp3); //$NON-NLS-1$
        checkEquality(cp1, cp2, "I", cp4); //$NON-NLS-1$
    }
View Full Code Here

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

        pool.add(u2);
        assertEquals(1, pool.size());
    }

    public void testDuplicateField() {
        CPMember cp1 = new CPMember(new CPUTF8("name", 1), new CPUTF8("I", 2),
                0, null);
        pool.add(cp1);
        pool.addNestedEntries();
        assertEquals(2, pool.size());
        CPMember cp2 = new CPMember(new CPUTF8("name", 1), new CPUTF8("I", 2),
                0, null);
        pool.add(cp2);
        pool.addNestedEntries();
        assertEquals(2, pool.size());
    }
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.