/** * Gets the class file field {@code major_version}, but * without doing any checks or parsing first. * * @return the major version */ public int getMajorVersion0() { return bytes.getUnsignedShort(6); }
/** * Gets the class file field {@code minor_version}, but * without doing any checks or parsing first. * * @return the minor version */ public int getMinorVersion0() { return bytes.getUnsignedShort(4); }
/** * Gets the class file field {@code major_version}, but * without doing any checks or parsing first. * * @return the major version */ public int getMajorVersion0() { return bytes.getUnsignedShort(6); }
/** * Gets the class file field {@code minor_version}, but * without doing any checks or parsing first. * * @return the minor version */ public int getMinorVersion0() { return bytes.getUnsignedShort(4); }
/** * Gets the class file field {@code minor_version}, but * without doing any checks or parsing first. * * @return the minor version */ public int getMinorVersion0() { return bytes.getUnsignedShort(4); }
/** * Gets the class file field {@code minor_version}, but * without doing any checks or parsing first. * * @return the minor version */ public int getMinorVersion0() { return bytes.getUnsignedShort(4); }
/** * Gets the class file field {@code minor_version}, but * without doing any checks or parsing first. * * @return the minor version */ public int getMinorVersion0() { return bytes.getUnsignedShort(4); }
/** * Gets the class file field {@code major_version}, but * without doing any checks or parsing first. * * @return the major version */ public int getMajorVersion0() { return bytes.getUnsignedShort(6); }
/** * Gets the count of elements in the list. * * @return the count */ protected final int getCount() { ByteArray bytes = cf.getBytes(); return bytes.getUnsignedShort(offset); }
/** * Constructs an instance. * * @param bytes {@code non-null;} the bytes of the file */ public ConstantPoolParser(ByteArray bytes) { int size = bytes.getUnsignedShort(8); // constant_pool_count this.bytes = bytes; this.pool = new StdConstantPool(size); this.offsets = new int[size]; this.endOffset = -1; }
/** * Constructs an instance. * * @param bytes {@code non-null;} the bytes of the file */ public ConstantPoolParser(ByteArray bytes) { int size = bytes.getUnsignedShort(8); // constant_pool_count this.bytes = bytes; this.pool = new StdConstantPool(size); this.offsets = new int[size]; this.endOffset = -1; }
/** * Gets the count of elements in the list. * * @return the count */ protected final int getCount() { ByteArray bytes = cf.getBytes(); return bytes.getUnsignedShort(offset); }
/** * Constructs an instance. * * @param bytes {@code non-null;} the bytes of the file */ public ConstantPoolParser(ByteArray bytes) { int size = bytes.getUnsignedShort(8); // constant_pool_count this.bytes = bytes; this.pool = new StdConstantPool(size); this.offsets = new int[size]; this.endOffset = -1; }
/** * Gets the count of elements in the list. * * @return the count */ protected final int getCount() { ByteArray bytes = cf.getBytes(); return bytes.getUnsignedShort(offset); }
/** * Gets the count of elements in the list. * * @return the count */ protected final int getCount() { ByteArray bytes = cf.getBytes(); return bytes.getUnsignedShort(offset); }
/** * Constructs an instance. * * @param bytes {@code non-null;} the bytes of the file */ public ConstantPoolParser(ByteArray bytes) { int size = bytes.getUnsignedShort(8); // constant_pool_count this.bytes = bytes; this.pool = new StdConstantPool(size); this.offsets = new int[size]; this.endOffset = -1; }
/** {@inheritDoc} */ public Type getType(int n) { int idx = bytes.getUnsignedShort(n * 2); return ((CstType) pool.get(idx)).getClassType(); }
/** {@inheritDoc} */ @Override public Type getType(int n) { int idx = bytes.getUnsignedShort(n * 2); return ((CstType) pool.get(idx)).getClassType(); }
/** {@inheritDoc} */ public Type getType(int n) { int idx = bytes.getUnsignedShort(n * 2); return ((CstType) pool.get(idx)).getClassType(); }
/** {@inheritDoc} */ public Type getType(int n) { int idx = bytes.getUnsignedShort(n * 2); return ((CstType) pool.get(idx)).getClassType(); }