Package org.apache.bcel.classfile
Class LocalVariableTypeTable
- java.lang.Object
-
- org.apache.bcel.classfile.Attribute
-
- org.apache.bcel.classfile.LocalVariableTypeTable
-
- All Implemented Interfaces:
java.lang.Cloneable
,java.lang.Iterable<LocalVariable>
,Node
public class LocalVariableTypeTable extends Attribute implements java.lang.Iterable<LocalVariable>
- Since:
- 6.0
-
-
Field Summary
-
Fields inherited from class org.apache.bcel.classfile.Attribute
constant_pool, length, name_index, tag
-
-
Constructor Summary
Constructors Constructor Description LocalVariableTypeTable(int nameIndex, int length, LocalVariable[] localVariableTypeTable, ConstantPool constantPool)
LocalVariableTypeTable(LocalVariableTypeTable c)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
accept(Visitor v)
Called by objects that are traversing the nodes of the tree implicitly defined by the contents of a Java class.Attribute
copy(ConstantPool constantPool)
void
dump(java.io.DataOutputStream file)
Dumps attribute to file stream in binary format.LocalVariable
getLocalVariable(int index)
LocalVariable[]
getLocalVariableTypeTable()
int
getTableLength()
java.util.Iterator<LocalVariable>
iterator()
void
setLocalVariableTable(LocalVariable[] localVariableTable)
java.lang.String
toString()
-
Methods inherited from class org.apache.bcel.classfile.Attribute
addAttributeReader, addAttributeReader, clone, getConstantPool, getLength, getName, getNameIndex, getTag, println, readAttribute, readAttribute, removeAttributeReader, setConstantPool, setLength, setNameIndex
-
-
-
-
Constructor Detail
-
LocalVariableTypeTable
public LocalVariableTypeTable(int nameIndex, int length, LocalVariable[] localVariableTypeTable, ConstantPool constantPool)
-
LocalVariableTypeTable
public LocalVariableTypeTable(LocalVariableTypeTable c)
-
-
Method Detail
-
accept
public void accept(Visitor v)
Description copied from class:Attribute
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.
-
copy
public Attribute copy(ConstantPool constantPool)
-
dump
public final void dump(java.io.DataOutputStream file) throws java.io.IOException
Description copied from class:Attribute
Dumps attribute to file stream in binary format.
-
getLocalVariable
public final LocalVariable getLocalVariable(int index)
-
getLocalVariableTypeTable
public final LocalVariable[] getLocalVariableTypeTable()
-
getTableLength
public final int getTableLength()
-
iterator
public java.util.Iterator<LocalVariable> iterator()
- Specified by:
iterator
in interfacejava.lang.Iterable<LocalVariable>
-
setLocalVariableTable
public final void setLocalVariableTable(LocalVariable[] localVariableTable)
-
-