diff --git a/Readme.html b/Readme.html index 92ba667f..c8d0df8c 100644 --- a/Readme.html +++ b/Readme.html @@ -281,6 +281,11 @@
-version 3.26 +
-version 3.25 on April 16, 2019
bootstrap_method_attr_index
field of the
- * CONSTANT_InvokeDynamic_info
structure
- * at the given index.
- *
- * @since 3.17
- */
- public int getInvokeDynamicBootstrap(int index)
- {
- InvokeDynamicInfo iv = (InvokeDynamicInfo)getItem(index);
- return iv.bootstrap;
- }
-
- /**
- * Reads the name_and_type_index
field of the
- * CONSTANT_InvokeDynamic_info
structure
- * at the given index.
- *
- * @since 3.17
- */
- public int getInvokeDynamicNameAndType(int index)
- {
- InvokeDynamicInfo iv = (InvokeDynamicInfo)getItem(index);
- return iv.nameAndType;
- }
-
- /**
- * Reads the descriptor_index
field of the
- * CONSTANT_NameAndType_info
structure
- * indirectly specified by the given index.
- *
- * @param index an index to a CONSTANT_InvokeDynamic_info
.
- * @return the descriptor of the method.
- * @since 3.17
- */
- public String getInvokeDynamicType(int index)
- {
- InvokeDynamicInfo iv = (InvokeDynamicInfo)getItem(index);
- if (iv == null)
- return null;
- NameAndTypeInfo n = (NameAndTypeInfo)getItem(iv.nameAndType);
- if(n == null)
- return null;
- return getUtf8Info(n.typeDescriptor);
- }
-
- /**
- * Reads the bootstrap_method_attr_index
field of the
- * CONSTANT_Dynamic_info
structure
- * at the given index.
- *
- * @since 3.17
- */
- public int getDynamicBootstrap(int index)
- {
- DynamicInfo iv = (DynamicInfo)getItem(index);
- return iv.bootstrap;
- }
-
- /**
- * Reads the name_and_type_index
field of the
- * CONSTANT_Dynamic_info
structure
- * at the given index.
- *
- * @since 3.17
- */
- public int getDynamicNameAndType(int index)
- {
- DynamicInfo iv = (DynamicInfo)getItem(index);
- return iv.nameAndType;
- }
-
- /**
- * Reads the descriptor_index
field of the
- * CONSTANT_NameAndType_info
structure
- * indirectly specified by the given index.
- *
- * @param index an index to a CONSTANT_Dynamic_info
.
- * @return the descriptor of the method.
- * @since 3.17
- */
- public String getDynamicType(int index)
- {
- DynamicInfo iv = (DynamicInfo)getItem(index);
- if (iv == null)
- return null;
- NameAndTypeInfo n = (NameAndTypeInfo)getItem(iv.nameAndType);
- if(n == null)
- return null;
- return getUtf8Info(n.typeDescriptor);
- }
-
- /**
+ /**
+ * Reads the bootstrap_method_attr_index
field of the
+ * CONSTANT_InvokeDynamic_info
structure
+ * at the given index.
+ *
+ * @since 3.17
+ */
+ public int getInvokeDynamicBootstrap(int index)
+ {
+ InvokeDynamicInfo iv = (InvokeDynamicInfo)getItem(index);
+ return iv.bootstrap;
+ }
+
+ /**
+ * Reads the name_and_type_index
field of the
+ * CONSTANT_InvokeDynamic_info
structure
+ * at the given index.
+ *
+ * @since 3.17
+ */
+ public int getInvokeDynamicNameAndType(int index)
+ {
+ InvokeDynamicInfo iv = (InvokeDynamicInfo)getItem(index);
+ return iv.nameAndType;
+ }
+
+ /**
+ * Reads the descriptor_index
field of the
+ * CONSTANT_NameAndType_info
structure
+ * indirectly specified by the given index.
+ *
+ * @param index an index to a CONSTANT_InvokeDynamic_info
.
+ * @return the descriptor of the bootstrap method.
+ * @since 3.17
+ */
+ public String getInvokeDynamicType(int index)
+ {
+ InvokeDynamicInfo iv = (InvokeDynamicInfo)getItem(index);
+ if (iv == null)
+ return null;
+ NameAndTypeInfo n = (NameAndTypeInfo)getItem(iv.nameAndType);
+ if(n == null)
+ return null;
+ return getUtf8Info(n.typeDescriptor);
+ }
+
+ /**
+ * Reads the bootstrap_method_attr_index
field of the
+ * CONSTANT_Dynamic_info
structure
+ * at the given index.
+ *
+ * @since 3.26
+ */
+ public int getDynamicBootstrap(int index)
+ {
+ DynamicInfo iv = (DynamicInfo)getItem(index);
+ return iv.bootstrap;
+ }
+
+ /**
+ * Reads the name_and_type_index
field of the
+ * CONSTANT_Dynamic_info
structure
+ * at the given index.
+ *
+ * @since 3.26
+ */
+ public int getDynamicNameAndType(int index)
+ {
+ DynamicInfo iv = (DynamicInfo)getItem(index);
+ return iv.nameAndType;
+ }
+
+ /**
+ * Reads the descriptor_index
field of the
+ * CONSTANT_NameAndType_info
structure
+ * indirectly specified by the given index.
+ *
+ * @param index an index to a CONSTANT_Dynamic_info
.
+ * @return the descriptor of the bootstrap method.
+ * @since 3.26
+ */
+ public String getDynamicType(int index)
+ {
+ DynamicInfo iv = (DynamicInfo)getItem(index);
+ if (iv == null)
+ return null;
+ NameAndTypeInfo n = (NameAndTypeInfo)getItem(iv.nameAndType);
+ if(n == null)
+ return null;
+ return getUtf8Info(n.typeDescriptor);
+ }
+
+ /**
* Reads the name_index
field of the
* CONSTANT_Module_info
structure at the given index.
*
@@ -1247,18 +1247,18 @@ public int addInvokeDynamicInfo(int bootstrap, int nameAndType)
}
/**
- * Adds a new CONSTANT_Dynamic_info
structure.
- *
- * @param bootstrap bootstrap_method_attr_index
.
- * @param nameAndType name_and_type_index
.
- * @return the index of the added entry.
- * @since 3.17
- */
- public int addDynamicInfo(int bootstrap, int nameAndType) {
- return addItem(new DynamicInfo(bootstrap, nameAndType, numOfItems));
- }
+ * Adds a new CONSTANT_Dynamic_info
structure.
+ *
+ * @param bootstrap bootstrap_method_attr_index
.
+ * @param nameAndType name_and_type_index
.
+ * @return the index of the added entry.
+ * @since 3.26
+ */
+ public int addDynamicInfo(int bootstrap, int nameAndType) {
+ return addItem(new DynamicInfo(bootstrap, nameAndType, numOfItems));
+ }
- /**
+ /**
* Adds a new CONSTANT_Module_info
* @param nameIndex the index of the Utf8 entry.
* @return the index of the added entry.
@@ -2390,64 +2390,59 @@ public void print(PrintWriter out) {
class DynamicInfo extends ConstInfo {
- static final int tag = 17;
- int bootstrap, nameAndType;
-
- public DynamicInfo(int bootstrapMethod,
- int ntIndex, int index) {
- super(index);
- bootstrap = bootstrapMethod;
- nameAndType = ntIndex;
- }
-
- public DynamicInfo(DataInputStream in, int index)
- throws IOException {
- super(index);
- bootstrap = in.readUnsignedShort();
- nameAndType = in.readUnsignedShort();
- }
-
- @Override
- public int hashCode() {
- return (bootstrap << 16) ^ nameAndType;
- }
-
- @Override
- public boolean equals(Object obj) {
- if (obj instanceof DynamicInfo) {
- DynamicInfo iv = (DynamicInfo) obj;
- return iv.bootstrap == bootstrap
- && iv.nameAndType == nameAndType;
- }
- return false;
- }
-
- @Override
- public int getTag() {
- return tag;
- }
-
- @Override
- public int copy(ConstPool src, ConstPool dest,
- Map