Package serp.bytecode
Class BootstrapMethods
- java.lang.Object
-
- serp.bytecode.Attributes
-
- serp.bytecode.Attribute
-
- serp.bytecode.BootstrapMethods
-
- All Implemented Interfaces:
BCEntity
,VisitAcceptor
public class BootstrapMethods extends Attribute
-
-
Field Summary
Fields Modifier and Type Field Description private BootstrapMethodElement[]
_bootstrapMethods
-
Constructor Summary
Constructors Constructor Description BootstrapMethods(int nameIndex, Attributes owner)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
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.BootstrapMethodElement[]
getBootstrapMethods()
(package private) int
getLength()
Return the length of the bytecode representation of this attribute in bytes, excluding the name index.int
getNumberBootstrapMethods()
(package private) void
read(java.io.DataInput in, int length)
Read the attribute bytecode from the given stream, up to length bytes, excluding the name index.void
setBootstrapMethods(BootstrapMethodElement[] methods)
(package private) void
write(java.io.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 Detail
-
_bootstrapMethods
private BootstrapMethodElement[] _bootstrapMethods
-
-
Constructor Detail
-
BootstrapMethods
BootstrapMethods(int nameIndex, Attributes owner)
-
-
Method Detail
-
acceptVisit
public void acceptVisit(BCVisitor visitor)
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
public BootstrapMethodElement[] getBootstrapMethods()
-
setBootstrapMethods
public void setBootstrapMethods(BootstrapMethodElement[] methods)
-
getLength
int getLength()
Return the length of the bytecode representation of this attribute in bytes, excluding the name index.
-
read
void read(java.io.DataInput in, int length) throws java.io.IOException
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.
-
write
void write(java.io.DataOutput out, int length) throws java.io.IOException
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.
-
-