Java Code Examples for sun.reflect.ConstantPool#getLongAt()

The following examples show how to use sun.reflect.ConstantPool#getLongAt() . These examples are extracted from open source projects. You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
private static Object parseLongArray(int length,
                              ByteBuffer buf, ConstantPool constPool) {
    long[] result = new long[length];
    boolean typeMismatch = false;
    int tag = 0;

    for (int i = 0; i < length; i++) {
        tag = buf.get();
        if (tag == 'J') {
            int index = buf.getShort() & 0xFFFF;
            result[i] = constPool.getLongAt(index);
        } else {
            skipMemberValue(tag, buf);
            typeMismatch = true;
        }
    }
    return typeMismatch ? exceptionProxy(tag) : result;
}
 
Example 2
private static Object parseLongArray(int length,
                              ByteBuffer buf, ConstantPool constPool) {
    long[] result = new long[length];
    boolean typeMismatch = false;
    int tag = 0;

    for (int i = 0; i < length; i++) {
        tag = buf.get();
        if (tag == 'J') {
            int index = buf.getShort() & 0xFFFF;
            result[i] = constPool.getLongAt(index);
        } else {
            skipMemberValue(tag, buf);
            typeMismatch = true;
        }
    }
    return typeMismatch ? exceptionProxy(tag) : result;
}
 
Example 3
private static Object parseLongArray(int length,
                              ByteBuffer buf, ConstantPool constPool) {
    long[] result = new long[length];
    boolean typeMismatch = false;
    int tag = 0;

    for (int i = 0; i < length; i++) {
        tag = buf.get();
        if (tag == 'J') {
            int index = buf.getShort() & 0xFFFF;
            result[i] = constPool.getLongAt(index);
        } else {
            skipMemberValue(tag, buf);
            typeMismatch = true;
        }
    }
    return typeMismatch ? exceptionProxy(tag) : result;
}
 
Example 4
private static Object parseLongArray(int length,
                              ByteBuffer buf, ConstantPool constPool) {
    long[] result = new long[length];
    boolean typeMismatch = false;
    int tag = 0;

    for (int i = 0; i < length; i++) {
        tag = buf.get();
        if (tag == 'J') {
            int index = buf.getShort() & 0xFFFF;
            result[i] = constPool.getLongAt(index);
        } else {
            skipMemberValue(tag, buf);
            typeMismatch = true;
        }
    }
    return typeMismatch ? exceptionProxy(tag) : result;
}
 
Example 5
private static Object parseLongArray(int length,
                              ByteBuffer buf, ConstantPool constPool) {
    long[] result = new long[length];
    boolean typeMismatch = false;
    int tag = 0;

    for (int i = 0; i < length; i++) {
        tag = buf.get();
        if (tag == 'J') {
            int index = buf.getShort() & 0xFFFF;
            result[i] = constPool.getLongAt(index);
        } else {
            skipMemberValue(tag, buf);
            typeMismatch = true;
        }
    }
    return typeMismatch ? exceptionProxy(tag) : result;
}
 
Example 6
private static Object parseLongArray(int length,
                              ByteBuffer buf, ConstantPool constPool) {
    long[] result = new long[length];
    boolean typeMismatch = false;
    int tag = 0;

    for (int i = 0; i < length; i++) {
        tag = buf.get();
        if (tag == 'J') {
            int index = buf.getShort() & 0xFFFF;
            result[i] = constPool.getLongAt(index);
        } else {
            skipMemberValue(tag, buf);
            typeMismatch = true;
        }
    }
    return typeMismatch ? exceptionProxy(tag) : result;
}
 
Example 7
private static Object parseLongArray(int length,
                              ByteBuffer buf, ConstantPool constPool) {
    long[] result = new long[length];
    boolean typeMismatch = false;
    int tag = 0;

    for (int i = 0; i < length; i++) {
        tag = buf.get();
        if (tag == 'J') {
            int index = buf.getShort() & 0xFFFF;
            result[i] = constPool.getLongAt(index);
        } else {
            skipMemberValue(tag, buf);
            typeMismatch = true;
        }
    }
    return typeMismatch ? exceptionProxy(tag) : result;
}
 
Example 8
private static Object parseLongArray(int length,
                              ByteBuffer buf, ConstantPool constPool) {
    long[] result = new long[length];
    boolean typeMismatch = false;
    int tag = 0;

    for (int i = 0; i < length; i++) {
        tag = buf.get();
        if (tag == 'J') {
            int index = buf.getShort() & 0xFFFF;
            result[i] = constPool.getLongAt(index);
        } else {
            skipMemberValue(tag, buf);
            typeMismatch = true;
        }
    }
    return typeMismatch ? exceptionProxy(tag) : result;
}
 
Example 9
private static Object parseLongArray(int length,
                              ByteBuffer buf, ConstantPool constPool) {
    long[] result = new long[length];
    boolean typeMismatch = false;
    int tag = 0;

    for (int i = 0; i < length; i++) {
        tag = buf.get();
        if (tag == 'J') {
            int index = buf.getShort() & 0xFFFF;
            result[i] = constPool.getLongAt(index);
        } else {
            skipMemberValue(tag, buf);
            typeMismatch = true;
        }
    }
    return typeMismatch ? exceptionProxy(tag) : result;
}
 
Example 10
private static Object parseLongArray(int length,
                              ByteBuffer buf, ConstantPool constPool) {
    long[] result = new long[length];
    boolean typeMismatch = false;
    int tag = 0;

    for (int i = 0; i < length; i++) {
        tag = buf.get();
        if (tag == 'J') {
            int index = buf.getShort() & 0xFFFF;
            result[i] = constPool.getLongAt(index);
        } else {
            skipMemberValue(tag, buf);
            typeMismatch = true;
        }
    }
    return typeMismatch ? exceptionProxy(tag) : result;
}
 
Example 11
private static Object parseLongArray(int length,
                              ByteBuffer buf, ConstantPool constPool) {
    long[] result = new long[length];
    boolean typeMismatch = false;
    int tag = 0;

    for (int i = 0; i < length; i++) {
        tag = buf.get();
        if (tag == 'J') {
            int index = buf.getShort() & 0xFFFF;
            result[i] = constPool.getLongAt(index);
        } else {
            skipMemberValue(tag, buf);
            typeMismatch = true;
        }
    }
    return typeMismatch ? exceptionProxy(tag) : result;
}
 
Example 12
private static Object parseLongArray(int length,
                              ByteBuffer buf, ConstantPool constPool) {
    long[] result = new long[length];
    boolean typeMismatch = false;
    int tag = 0;

    for (int i = 0; i < length; i++) {
        tag = buf.get();
        if (tag == 'J') {
            int index = buf.getShort() & 0xFFFF;
            result[i] = constPool.getLongAt(index);
        } else {
            skipMemberValue(tag, buf);
            typeMismatch = true;
        }
    }
    return typeMismatch ? exceptionProxy(tag) : result;
}
 
Example 13
private static Object parseLongArray(int length,
                              ByteBuffer buf, ConstantPool constPool) {
    long[] result = new long[length];
    boolean typeMismatch = false;
    int tag = 0;

    for (int i = 0; i < length; i++) {
        tag = buf.get();
        if (tag == 'J') {
            int index = buf.getShort() & 0xFFFF;
            result[i] = constPool.getLongAt(index);
        } else {
            skipMemberValue(tag, buf);
            typeMismatch = true;
        }
    }
    return typeMismatch ? exceptionProxy(tag) : result;
}
 
Example 14
private static Object parseLongArray(int length,
                              ByteBuffer buf, ConstantPool constPool) {
    long[] result = new long[length];
    boolean typeMismatch = false;
    int tag = 0;

    for (int i = 0; i < length; i++) {
        tag = buf.get();
        if (tag == 'J') {
            int index = buf.getShort() & 0xFFFF;
            result[i] = constPool.getLongAt(index);
        } else {
            skipMemberValue(tag, buf);
            typeMismatch = true;
        }
    }
    return typeMismatch ? exceptionProxy(tag) : result;
}