Top Description Inners Fields Constructors Methods
org.aspectj.apache.bcel.classfile

public final Class BootstrapMethods

extends Attribute
Class Inheritance
Imports
java.io.ByteArrayInputStream, .DataInputStream, .DataOutputStream, .IOException, org.aspectj.apache.bcel.Constants

Represents the BootstrapMethods attribute in Java 7 classes.
Author
Andy Clement

Nested and Inner Type Summary

Modifier and TypeClass and Description
public static class

Field Summary

Modifier and TypeField and Description
private BootstrapMethods.BootstrapMethod[]
private byte[]
private boolean
private int
Inherited from org.aspectj.apache.bcel.classfile.Attribute:
cpoollengthnameIndexNoAttributestag

Constructor Summary

AccessConstructor and Description
public
public
BootstrapMethods(int nameIndex, int length, BootstrapMethods.BootstrapMethod[] lineNumberTable, ConstantPool constantPool)

pack-priv
BootstrapMethods(int name_index, int length, DataInputStream file, ConstantPool constant_pool)

Method Summary

Modifier and TypeMethod and Description
public void
accept(ClassVisitor
Visitor object
v
)

Implements abstract org.aspectj.apache.bcel.classfile.Attribute.accept.

Implements org.aspectj.apache.bcel.classfile.Node.accept.

Called by objects that are traversing the nodes of the tree implicitely defined by the contents of a Java class.
public final void
dump(DataOutputStream
Output file stream
file
)

Overrides org.aspectj.apache.bcel.classfile.Attribute.dump.

Dump line number table attribute to file stream in binary format.
public final BootstrapMethods.BootstrapMethod[]
public final int

Returns:

deep copy of this attribute
getNumBootstrapMethods
()

public final void
public final String

Returns:

String representation.
toString
()

Overrides org.aspectj.apache.bcel.classfile.Attribute.toString.

Returns a string representation of the object.
private void
Inherited from org.aspectj.apache.bcel.classfile.Attribute:
getConstantPoolgetLengthgetNamegetNameIndexgetTagreadAttribute

Field Detail

bootstrapMethodsback to summary
private BootstrapMethods.BootstrapMethod[] bootstrapMethods
databack to summary
private byte[] data
isInPackedStateback to summary
private boolean isInPackedState
numBootstrapMethodsback to summary
private int numBootstrapMethods

Constructor Detail

BootstrapMethodsback to summary
public BootstrapMethods(BootstrapMethods c)
BootstrapMethodsback to summary
public BootstrapMethods(int nameIndex, int length, BootstrapMethods.BootstrapMethod[] lineNumberTable, ConstantPool constantPool)
BootstrapMethodsback to summary
pack-priv BootstrapMethods(int name_index, int length, DataInputStream file, ConstantPool constant_pool) throws IOException

Method Detail

acceptback to summary
public void accept(ClassVisitor v)

Implements abstract org.aspectj.apache.bcel.classfile.Attribute.accept.

Implements org.aspectj.apache.bcel.classfile.Node.accept.

Called by objects that are traversing the nodes of the tree implicitely defined by the contents of a Java class. I.e., the hierarchy of methods, fields, attributes, etc. spawns a tree of objects.

Parameters
v:ClassVisitor

Visitor object

Annotations
@Override
dumpback to summary
public final void dump(DataOutputStream file) throws IOException

Overrides org.aspectj.apache.bcel.classfile.Attribute.dump.

Dump line number table attribute to file stream in binary format.

Parameters
file:DataOutputStream

Output file stream

Annotations
@Override
getBootstrapMethodsback to summary
public final BootstrapMethods.BootstrapMethod[] getBootstrapMethods()
getNumBootstrapMethodsback to summary
public final int getNumBootstrapMethods()
Returns:int

deep copy of this attribute

setBootstrapMethodsback to summary
public final void setBootstrapMethods(BootstrapMethods.BootstrapMethod[] bootstrapMethods)
toStringback to summary
public final String toString()

Overrides org.aspectj.apache.bcel.classfile.Attribute.toString.

Doc from java.lang.Object.toString.

Returns a string representation of the object.

Returns:String

String representation.

Annotations
@Override
unpackback to summary
private void unpack()
org.aspectj.apache.bcel.classfile back to summary

public Class BootstrapMethods.BootstrapMethod

extends Object
Class Inheritance
  • java.lang.Object
  • org.aspectj.apache.bcel.classfile.BootstrapMethods.BootstrapMethod

Field Summary

Modifier and TypeField and Description
private int[]
private int

Constructor Summary

AccessConstructor and Description
pack-priv
public
BootstrapMethod(int bootstrapMethodRef, int[] bootstrapArguments)

Method Summary

Modifier and TypeMethod and Description
public final void
public int[]
public int
public final int
private static int[]
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

bootstrapArgumentsback to summary
private int[] bootstrapArguments
bootstrapMethodRefback to summary
private int bootstrapMethodRef

Constructor Detail

BootstrapMethodback to summary
pack-priv BootstrapMethod(DataInputStream file) throws IOException
BootstrapMethodback to summary
public BootstrapMethod(int bootstrapMethodRef, int[] bootstrapArguments)

Method Detail

dumpback to summary
public final void dump(DataOutputStream file) throws IOException
getBootstrapArgumentsback to summary
public int[] getBootstrapArguments()
getBootstrapMethodRefback to summary
public int getBootstrapMethodRef()
getLengthback to summary
public final int getLength()
readBootstrapArgumentsback to summary
private static int[] readBootstrapArguments(DataInputStream dis) throws IOException