Top Fields Constructors Methods
org.apache.bcel.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, org.apache.bcel.Const, org.apache.bcel.util.Args

Since
6.0

Field Summary

Modifier and TypeField and Description
private LocalVariable[]
localVariableTypeTable

Deprecated as a consequence of LocalVariable being deprecated.
Inherited from org.apache.bcel.classfile.Attribute:
constant_poolEMPTY_ARRAYlengthname_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)

Deprecated as a consequence of LocalVariable being deprecated.
public

Method Summary

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

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

Implements org.apache.bcel.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

Returns:

deep copy of this attribute
copy
(final ConstantPool
constant pool to save.
constantPool
)

Implements abstract org.apache.bcel.classfile.Attribute.copy.

public final void
dump(final DataOutputStream
Output file stream
file
)

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

Dumps attribute to file stream in binary format.
public final LocalVariable
getLocalVariable(final int index)

Deprecated as a consequence of LocalVariable being deprecated.
public final LocalVariable[]
getLocalVariableTypeTable()

Deprecated as a consequence of LocalVariable being deprecated.
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)

Deprecated as a consequence of LocalVariable being deprecated.
public final String

Returns:

String representation.
toString
()

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

Returns a string representation of the object.
Inherited from org.apache.bcel.classfile.Attribute:
addAttributeReaderaddAttributeReaderclonegetConstantPoolgetLengthgetNamegetNameIndexgetTagprintlnreadAttributereadAttributeremoveAttributeReadersetConstantPoolsetLengthsetNameIndex

Field Detail

localVariableTypeTableback to summary
private LocalVariable[] localVariableTypeTable

Deprecated

as a consequence of LocalVariable being deprecated. See corresponding docs for further information.

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)

Deprecated

as a consequence of LocalVariable being deprecated. See corresponding docs for further information.

LocalVariableTypeTableback to summary
public LocalVariableTypeTable(final LocalVariableTypeTable c)

Method Detail

acceptback to summary
public void accept(final Visitor v)

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

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

Doc from org.apache.bcel.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.

Parameters
v:Visitor

Visitor object

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

Implements abstract org.apache.bcel.classfile.Attribute.copy.

Parameters
constantPool:ConstantPool

Doc from org.apache.bcel.classfile.Attribute.copy.

constant pool to save.

Returns:Attribute

deep copy of this attribute

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

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

Doc from org.apache.bcel.classfile.Attribute.dump.

Dumps attribute to file stream in binary format.

Parameters
file:DataOutputStream

Output file stream

Annotations
@Override
Exceptions
IOException:
if an I/O error occurs.
getLocalVariableback to summary
public final LocalVariable getLocalVariable(final int index)

Deprecated

as a consequence of LocalVariable being deprecated. See corresponding docs for further information.

getLocalVariableTypeTableback to summary
public final LocalVariable[] getLocalVariableTypeTable()

Deprecated

as a consequence of LocalVariable being deprecated. See corresponding docs for further information.

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.

Returns:Iterator<LocalVariable>

an Iterator.

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

Deprecated

as a consequence of LocalVariable being deprecated. See corresponding docs for further information.

toStringback to summary
public final String toString()

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

Doc from java.lang.Object.toString.

Returns a string representation of the object.

Returns:String

String representation.

Annotations
@Override