Package org.vesalainen.bcc
Class LocalVariableTypeTable
- java.lang.Object
-
- org.vesalainen.bcc.AttributeInfo
-
- org.vesalainen.bcc.LocalVariableTypeTable
-
- All Implemented Interfaces:
Writable
public class LocalVariableTypeTable extends AttributeInfo
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description private classLocalVariableTypeTable.LocalTypeVariable
-
Field Summary
Fields Modifier and Type Field Description private intcodeLengthprivate java.util.List<LocalVariableTypeTable.LocalTypeVariable>localTypeVariables-
Fields inherited from class org.vesalainen.bcc.AttributeInfo
attribute_length, attribute_name_index, classFile
-
-
Constructor Summary
Constructors Constructor Description LocalVariableTypeTable(ClassFile classFile, int attribute_name_index, int attribute_length, java.io.DataInput in)LocalVariableTypeTable(SubClass subClass, int codelength)
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description voidaddLocalTypeVariable(int nameIndex, int signatureIndex, int index)Deprecated.voidaddLocalTypeVariable(javax.lang.model.element.VariableElement ve, java.lang.String signature, int index)Adds a entry into LocalTypeVariableTable if variable is of generic typeintgetAttributeSize()booleanisEmpty()voidwrite(java.io.DataOutput out)-
Methods inherited from class org.vesalainen.bcc.AttributeInfo
getInstance, isOfType
-
-
-
-
Field Detail
-
localTypeVariables
private java.util.List<LocalVariableTypeTable.LocalTypeVariable> localTypeVariables
-
codeLength
private int codeLength
-
-
Constructor Detail
-
LocalVariableTypeTable
public LocalVariableTypeTable(SubClass subClass, int codelength)
-
LocalVariableTypeTable
LocalVariableTypeTable(ClassFile classFile, int attribute_name_index, int attribute_length, java.io.DataInput in) throws java.io.IOException
- Throws:
java.io.IOException
-
-
Method Detail
-
isEmpty
public boolean isEmpty()
-
addLocalTypeVariable
public void addLocalTypeVariable(javax.lang.model.element.VariableElement ve, java.lang.String signature, int index)Adds a entry into LocalTypeVariableTable if variable is of generic type- Parameters:
ve-index-
-
addLocalTypeVariable
public void addLocalTypeVariable(int nameIndex, int signatureIndex, int index)Deprecated.- Parameters:
nameIndex-signatureIndex-index-
-
write
public void write(java.io.DataOutput out) throws java.io.IOException- Specified by:
writein interfaceWritable- Overrides:
writein classAttributeInfo- Throws:
java.io.IOException
-
getAttributeSize
public int getAttributeSize()
- Overrides:
getAttributeSizein classAttributeInfo
-
-