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 Modifier and Type Field Description private LocalVariable[]
localVariableTypeTable
-
Fields inherited from class org.apache.bcel.classfile.Attribute
constant_pool, EMPTY_ARRAY, length, name_index, tag
-
-
Constructor Summary
Constructors Constructor Description LocalVariableTypeTable(int nameIdx, int len, java.io.DataInput input, ConstantPool cpool)
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
-
-
-
-
Field Detail
-
localVariableTypeTable
private LocalVariable[] localVariableTypeTable
-
-
Constructor Detail
-
LocalVariableTypeTable
LocalVariableTypeTable(int nameIdx, int len, java.io.DataInput input, ConstantPool cpool) throws java.io.IOException
- Throws:
java.io.IOException
-
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)
-
-