Package serp.bytecode
Class BootstrapMethods
java.lang.Object
serp.bytecode.Attributes
serp.bytecode.Attribute
serp.bytecode.BootstrapMethods
- All Implemented Interfaces:
BCEntity
,VisitAcceptor
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
acceptVisit
(BCVisitor visitor) Accept a visit from aBCVisitor
, calling the appropriate methods to notify the visitor that it has entered this entity, and to provide it with the proper callbacks for each sub-entity owned by this one.(package private) int
Return the length of the bytecode representation of this attribute in bytes, excluding the name index.int
(package private) void
Read the attribute bytecode from the given stream, up to length bytes, excluding the name index.void
setBootstrapMethods
(BootstrapMethodElement[] methods) (package private) void
write
(DataOutput out, int length) Write the attribute bytecode to the given stream, up to length bytes, excluding the name index.Methods inherited from class serp.bytecode.Attribute
create, getAttributesHolder, getClassLoader, getName, getNameIndex, getOwner, getPool, getProject, invalidate, isValid, read
Methods inherited from class serp.bytecode.Attributes
addAttribute, addAttribute, clearAttributes, getAttribute, getAttributes, getAttributes, readAttributes, removeAttribute, removeAttribute, setAttributes, visitAttributes, writeAttributes
-
Field Details
-
_bootstrapMethods
-
-
Constructor Details
-
BootstrapMethods
BootstrapMethods(int nameIndex, Attributes owner)
-
-
Method Details
-
acceptVisit
Description copied from interface:VisitAcceptor
Accept a visit from aBCVisitor
, calling the appropriate methods to notify the visitor that it has entered this entity, and to provide it with the proper callbacks for each sub-entity owned by this one. -
getNumberBootstrapMethods
public int getNumberBootstrapMethods() -
getBootstrapMethods
-
setBootstrapMethods
-
getLength
int getLength()Return the length of the bytecode representation of this attribute in bytes, excluding the name index. -
read
Description copied from class:Attribute
Read the attribute bytecode from the given stream, up to length bytes, excluding the name index. Does nothing by default.- Overrides:
read
in classAttribute
- Throws:
IOException
-
write
Description copied from class:Attribute
Write the attribute bytecode to the given stream, up to length bytes, excluding the name index. Does nothing by default.- Overrides:
write
in classAttribute
- Throws:
IOException
-