/** * Obtains <code>bootstrap_methods</code> in this attribute. * * @return an array of <code>BootstrapMethod</code>. Since it * is a fresh copy, modifying the returned array does not * affect the original contents of this attribute. */ public BootstrapMethod[] getMethods() { byte[] data = this.get(); int num = ByteArray.readU16bit(data, 0); BootstrapMethod[] methods = new BootstrapMethod[num]; int pos = 2; for (int i = 0; i < num; i++) { int ref = ByteArray.readU16bit(data, pos); int len = ByteArray.readU16bit(data, pos + 2); int[] args = new int[len]; pos += 4; for (int k = 0; k < len; k++) { args[k] = ByteArray.readU16bit(data, pos); pos += 2; } methods[i] = new BootstrapMethod(ref, args); } return methods; }
/** * Obtains <code>bootstrap_methods</code> in this attribute. * * @return an array of <code>BootstrapMethod</code>. Since it * is a fresh copy, modifying the returned array does not * affect the original contents of this attribute. */ public BootstrapMethod[] getMethods() { byte[] data = this.get(); int num = ByteArray.readU16bit(data, 0); BootstrapMethod[] methods = new BootstrapMethod[num]; int pos = 2; for (int i = 0; i < num; i++) { int ref = ByteArray.readU16bit(data, pos); int len = ByteArray.readU16bit(data, pos + 2); int[] args = new int[len]; pos += 4; for (int k = 0; k < len; k++) { args[k] = ByteArray.readU16bit(data, pos); pos += 2; } methods[i] = new BootstrapMethod(ref, args); } return methods; }
/** * Obtains <code>bootstrap_methods</code> in this attribute. * * @return an array of <code>BootstrapMethod</code>. Since it * is a fresh copy, modifying the returned array does not * affect the original contents of this attribute. */ public BootstrapMethod[] getMethods() { byte[] data = this.get(); int num = ByteArray.readU16bit(data, 0); BootstrapMethod[] methods = new BootstrapMethod[num]; int pos = 2; for (int i = 0; i < num; i++) { int ref = ByteArray.readU16bit(data, pos); int len = ByteArray.readU16bit(data, pos + 2); int[] args = new int[len]; pos += 4; for (int k = 0; k < len; k++) { args[k] = ByteArray.readU16bit(data, pos); pos += 2; } methods[i] = new BootstrapMethod(ref, args); } return methods; }
/** * Obtains <code>bootstrap_methods</code> in this attribute. * * @return an array of <code>BootstrapMethod</code>. Since it * is a fresh copy, modifying the returned array does not * affect the original contents of this attribute. */ public BootstrapMethod[] getMethods() { byte[] data = this.get(); int num = ByteArray.readU16bit(data, 0); BootstrapMethod[] methods = new BootstrapMethod[num]; int pos = 2; for (int i = 0; i < num; i++) { int ref = ByteArray.readU16bit(data, pos); int len = ByteArray.readU16bit(data, pos + 2); int[] args = new int[len]; pos += 4; for (int k = 0; k < len; k++) { args[k] = ByteArray.readU16bit(data, pos); pos += 2; } methods[i] = new BootstrapMethod(ref, args); } return methods; }
/** * Obtains <code>bootstrap_methods</code> in this attribute. * * @return an array of <code>BootstrapMethod</code>. Since it * is a fresh copy, modifying the returned array does not * affect the original contents of this attribute. */ public BootstrapMethod[] getMethods() { byte[] data = this.get(); int num = ByteArray.readU16bit(data, 0); BootstrapMethod[] methods = new BootstrapMethod[num]; int pos = 2; for (int i = 0; i < num; i++) { int ref = ByteArray.readU16bit(data, pos); int len = ByteArray.readU16bit(data, pos + 2); int[] args = new int[len]; pos += 4; for (int k = 0; k < len; k++) { args[k] = ByteArray.readU16bit(data, pos); pos += 2; } methods[i] = new BootstrapMethod(ref, args); } return methods; }