Package javassist.bytecode
Class BootstrapMethodsAttribute
java.lang.Object
javassist.bytecode.AttributeInfo
javassist.bytecode.BootstrapMethodsAttribute
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classAn element ofbootstrap_methods. -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringThe name of this attribute"BootstrapMethods".Fields inherited from class javassist.bytecode.AttributeInfo
constPool, info, name -
Constructor Summary
ConstructorsConstructorDescriptionBootstrapMethodsAttribute(ConstPool cp, int n, DataInputStream in) Constructs a BootstrapMethods attribute. -
Method Summary
Modifier and TypeMethodDescriptionMakes a copy.Obtainsbootstrap_methodsin this attribute.Methods inherited from class javassist.bytecode.AttributeInfo
copyAll, get, getConstPool, getLength, getName, getRefClasses, getRefClasses, length, lookup, read, remove, renameClass, renameClass, renameClass, renameClass, set, write, writeAll
-
Field Details
-
tag
The name of this attribute"BootstrapMethods".- See Also:
-
-
Constructor Details
-
BootstrapMethodsAttribute
BootstrapMethodsAttribute(ConstPool cp, int n, DataInputStream in) throws IOException - Throws:
IOException
-
BootstrapMethodsAttribute
Constructs a BootstrapMethods attribute.- Parameters:
cp- a constant pool table.methods- the contents.
-
-
Method Details
-
getMethods
Obtainsbootstrap_methodsin this attribute.- Returns:
- an array of
BootstrapMethod. Since it is a fresh copy, modifying the returned array does not affect the original contents of this attribute.
-
copy
Makes a copy. Class names are replaced according to the givenMapobject.- Overrides:
copyin classAttributeInfo- Parameters:
newCp- the constant pool table used by the new copy.classnames- pairs of replaced and substituted class names.
-