diff options
author | chibash <chiba@javassist.org> | 2019-09-02 00:21:32 +0900 |
---|---|---|
committer | chibash <chiba@javassist.org> | 2019-09-02 00:21:32 +0900 |
commit | cf1d22fa1f2554df07801291b98f84c627fc9ef5 (patch) | |
tree | 1b1ab15bec9b3abc9bda7941a082980f2eb62395 | |
parent | 10a92c6aa966859a3e6f1a5eb6efae6b8a37a426 (diff) | |
download | javassist-cf1d22fa1f2554df07801291b98f84c627fc9ef5.tar.gz javassist-cf1d22fa1f2554df07801291b98f84c627fc9ef5.zip |
adds ClassFileWriter#addDynamicInfo
-rw-r--r-- | javassist.jar | bin | 773221 -> 774695 bytes | |||
-rw-r--r-- | src/main/javassist/bytecode/ClassFileWriter.java | 18 |
2 files changed, 18 insertions, 0 deletions
diff --git a/javassist.jar b/javassist.jar Binary files differindex 74e714ee..19969da0 100644 --- a/javassist.jar +++ b/javassist.jar diff --git a/src/main/javassist/bytecode/ClassFileWriter.java b/src/main/javassist/bytecode/ClassFileWriter.java index 931ffcb4..90b56086 100644 --- a/src/main/javassist/bytecode/ClassFileWriter.java +++ b/src/main/javassist/bytecode/ClassFileWriter.java @@ -701,6 +701,24 @@ public class ClassFileWriter { } /** + * Adds a new <code>CONSTANT_Dynamic_info</code> + * structure. + * + * @param bootstrap <code>bootstrap_method_attr_index</code>. + * @param nameAndTypeInfo <code>name_and_type_index</code>. + * @return the index of the added entry. + * + * @since 3.26 + */ + public int addDynamicInfo(int bootstrap, + int nameAndTypeInfo) { + output.write(DynamicInfo.tag); + output.writeShort(bootstrap); + output.writeShort(nameAndTypeInfo); + return num++; + } + + /** * Adds a new <code>CONSTANT_String_info</code> * structure. * |