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 voidacceptVisit(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) intgetLength()Return the length of the bytecode representation of this attribute in bytes, excluding the name index.intgetNumberBootstrapMethods()(package private) voidread(java.io.DataInput in, int length)Read the attribute bytecode from the given stream, up to length bytes, excluding the name index.voidsetBootstrapMethods(BootstrapMethodElement[] methods)(package private) voidwrite(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:VisitAcceptorAccept 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.IOExceptionDescription copied from class:AttributeRead 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.IOExceptionDescription copied from class:AttributeWrite the attribute bytecode to the given stream, up to length bytes, excluding the name index. Does nothing by default.
-
-