Package com.yworks.yguard.obf.classfile
Class LocalVariableInfo
- java.lang.Object
-
- com.yworks.yguard.obf.classfile.LocalVariableInfo
-
public class LocalVariableInfo extends java.lang.ObjectRepresentation of an Local Variable table entry.
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static LocalVariableInfocreate(java.io.DataInput din)Create local variable info.protected intgetDescriptorIndex()Return descriptor index into Constant Pool.protected intgetNameIndex()Return name index into Constant Pool.protected voidmarkUtf8Refs(ConstantPool pool)Check for Utf8 references to constant pool and mark them.protected voidsetDescriptorIndex(int index)Set the descriptor index.protected voidsetNameIndex(int index)Set the name index.voidwrite(java.io.DataOutput dout)Export the representation to a DataOutput stream.
-
-
-
Method Detail
-
create
public static LocalVariableInfo create(java.io.DataInput din) throws java.io.IOException
Create local variable info.- Parameters:
din- the din- Returns:
- the local variable info
- Throws:
java.io.IOException- the io exception
-
getNameIndex
protected int getNameIndex()
Return name index into Constant Pool.- Returns:
- the name index
-
setNameIndex
protected void setNameIndex(int index)
Set the name index.- Parameters:
index- the index
-
getDescriptorIndex
protected int getDescriptorIndex()
Return descriptor index into Constant Pool.- Returns:
- the descriptor index
-
setDescriptorIndex
protected void setDescriptorIndex(int index)
Set the descriptor index.- Parameters:
index- the index
-
markUtf8Refs
protected void markUtf8Refs(ConstantPool pool)
Check for Utf8 references to constant pool and mark them.- Parameters:
pool- the pool
-
write
public void write(java.io.DataOutput dout) throws java.io.IOExceptionExport the representation to a DataOutput stream.- Parameters:
dout- the dout- Throws:
java.io.IOException- the io exception
-
-