APIdia Launch Partner
Top Fields Constructors Methods
com.sun.org.apache.bcel.internal.classfile

public Class LocalVariableTypeTable

extends Attribute
implements Iterable<LocalVariable>
Class Inheritance
All Implemented Interfaces
java.lang.Iterable
Imports
java.io.DataInput, .DataOutputStream, .IOException, java.util.Arrays, .Iterator, java.util.stream.Stream, com.sun.org.apache.bcel.internal.Const, com.sun.org.apache.bcel.internal.util.Args

Since
6.0

Field Summary

Modifier and TypeField and Description
private static final LocalVariable[]
private LocalVariable[]
Inherited from com.sun.org.apache.bcel.internal.classfile.Attribute:
constant_poollengthname_indextag

Constructor Summary

AccessConstructor and Description
pack-priv
LocalVariableTypeTable(final int nameIdx, final int len, final DataInput input, final ConstantPool cpool)

public
LocalVariableTypeTable(final int nameIndex, final int length, final LocalVariable[] localVariableTypeTable, final ConstantPool constantPool)

public

Method Summary

Modifier and TypeMethod and Description
public void
accept(final Visitor v)

Implements abstract com.sun.org.apache.bcel.internal.classfile.Attribute.accept.

Implements com.sun.org.apache.bcel.internal.classfile.Node.accept.

Called by objects that are traversing the nodes of the tree implicitly defined by the contents of a Java class.

public Attribute
copy(final ConstantPool constantPool)

Implements abstract com.sun.org.apache.bcel.internal.classfile.Attribute.copy.

Returns: deep copy of this attribute

public final void
dump(final DataOutputStream file)

Overrides com.sun.org.apache.bcel.internal.classfile.Attribute.dump.

Dumps attribute to file stream in binary format.

public final LocalVariable
getLocalVariable(final int index)

public final LocalVariable[]
public final int
public Iterator<LocalVariable>
iterator()

Implements java.lang.Iterable.iterator.

Returns an iterator over elements of type T.

public final void
setLocalVariableTable(final LocalVariable[] localVariableTable)

public final String

Returns:

String representation.
toString
()

Overrides com.sun.org.apache.bcel.internal.classfile.Attribute.toString.

Returns a string representation of the object.

Inherited from com.sun.org.apache.bcel.internal.classfile.Attribute:
addAttributeReaderclonegetConstantPoolgetLengthgetNamegetNameIndexgetTagprintlnreadAttributereadAttributeremoveAttributeReadersetConstantPoolsetLengthsetNameIndex

Field Detail

EMPTY_ARRAYback to summary
private static final LocalVariable[] EMPTY_ARRAY

Hides com.sun.org.apache.bcel.internal.classfile.Attribute.EMPTY_ARRAY.

localVariableTypeTableback to summary
private LocalVariable[] localVariableTypeTable

Constructor Detail

LocalVariableTypeTableback to summary
pack-priv LocalVariableTypeTable(final int nameIdx, final int len, final DataInput input, final ConstantPool cpool) throws IOException
LocalVariableTypeTableback to summary
public LocalVariableTypeTable(final int nameIndex, final int length, final LocalVariable[] localVariableTypeTable, final ConstantPool constantPool)
LocalVariableTypeTableback to summary
public LocalVariableTypeTable(final LocalVariableTypeTable c)

Method Detail

acceptback to summary
public void accept(final Visitor v)

Implements abstract com.sun.org.apache.bcel.internal.classfile.Attribute.accept.

Implements com.sun.org.apache.bcel.internal.classfile.Node.accept.

Doc from com.sun.org.apache.bcel.internal.classfile.Attribute.accept.

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

Annotations
@Override
copyback to summary
public Attribute copy(final ConstantPool constantPool)

Implements abstract com.sun.org.apache.bcel.internal.classfile.Attribute.copy.

Returns:Attribute

deep copy of this attribute

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

Overrides com.sun.org.apache.bcel.internal.classfile.Attribute.dump.

Doc from com.sun.org.apache.bcel.internal.classfile.Attribute.dump.

Dumps attribute to file stream in binary format.

Annotations
@Override
Exceptions
IOException:
if an I/O error occurs.
getLocalVariableback to summary
public final LocalVariable getLocalVariable(final int index)
getLocalVariableTypeTableback to summary
public final LocalVariable[] getLocalVariableTypeTable()
getTableLengthback to summary
public final int getTableLength()
iteratorback to summary
public Iterator<LocalVariable> iterator()

Implements java.lang.Iterable.iterator.

Doc from java.lang.Iterable.iterator.

Returns an iterator over elements of type T.

Annotations
@Override
setLocalVariableTableback to summary
public final void setLocalVariableTable(final LocalVariable[] localVariableTable)
toStringback to summary
public final String toString()

Overrides com.sun.org.apache.bcel.internal.classfile.Attribute.toString.

Doc from java.lang.Object.toString.

Returns a string representation of the object. Satisfying this method's contract implies a non-null result must be returned.

Returns:String

String representation.

Annotations
@Override