Package serp.bytecode
Class LocalVariable
java.lang.Object
serp.bytecode.Local
serp.bytecode.LocalVariable
- All Implemented Interfaces:
BCEntity
,InstructionPtr
A local variable contains the name, description, index and scope
of a local used in opcodes.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
acceptVisit
(BCVisitor visit) The owning table.getType()
Return the type of this local.Return the type of this local.void
Set the type of this local.void
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, invalidate, isValid, read, replaceTarget, setEnd, setLength, setLocal, setName, setNameIndex, setParam, setStart, setStartPc, setType, setTypeIndex, updateTargets, write
-
Constructor Details
-
LocalVariable
LocalVariable(LocalVariableTable owner)
-
-
Method Details
-
getLocalVariableTable
The owning table. -
getType
Return the type of this local. If the type has not been set, this method will return null. -
getTypeBC
Return the type of this local. If the type has not been set, this method will return null. -
setType
Set the type of this local. -
setType
Set the type of this local. -
acceptVisit
-