Package serp.bytecode
Class LocalVariable
- java.lang.Object
-
- serp.bytecode.Local
-
- serp.bytecode.LocalVariable
-
- All Implemented Interfaces:
BCEntity,InstructionPtr
public class LocalVariable extends Local
A local variable contains the name, description, index and scope of a local used in opcodes.- Author:
- Abe White
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidacceptVisit(BCVisitor visit)LocalVariableTablegetLocalVariableTable()The owning table.java.lang.ClassgetType()Return the type of this local.BCClassgetTypeBC()Return the type of this local.voidsetType(java.lang.Class type)Set the type of this local.voidsetType(BCClass type)Set the type of this local.-
Methods inherited from class serp.bytecode.Local
getClassLoader, getCode, getEnd, getLength, getLocal, getName, getNameIndex, getParam, getPool, getProject, getStart, getStartPc, getTable, getTypeIndex, getTypeName, isValid, replaceTarget, setEnd, setLength, setLocal, setName, setNameIndex, setParam, setStart, setStartPc, setType, setTypeIndex, updateTargets
-
-
-
-
Method Detail
-
getLocalVariableTable
public LocalVariableTable getLocalVariableTable()
The owning table.
-
getType
public java.lang.Class getType()
Return the type of this local. If the type has not been set, this method will return null.
-
getTypeBC
public BCClass getTypeBC()
Return the type of this local. If the type has not been set, this method will return null.
-
setType
public void setType(java.lang.Class type)
Set the type of this local.
-
setType
public void setType(BCClass type)
Set the type of this local.
-
acceptVisit
public void acceptVisit(BCVisitor visit)
-
-