Browse Source

adds ClassFileWriter#addDynamicInfo

tags/rel_3_26_0_ga
chibash 4 years ago
parent
commit
cf1d22fa1f
2 changed files with 18 additions and 0 deletions
  1. BIN
      javassist.jar
  2. 18
    0
      src/main/javassist/bytecode/ClassFileWriter.java

BIN
javassist.jar View File


+ 18
- 0
src/main/javassist/bytecode/ClassFileWriter.java View File

return num++; return num++;
} }


/**
* 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> * Adds a new <code>CONSTANT_String_info</code>
* structure. * structure.

Loading…
Cancel
Save