Package serp.bytecode
Class TypedInstruction
java.lang.Object
serp.bytecode.Instruction
serp.bytecode.TypedInstruction
- All Implemented Interfaces:
BCEntity
,VisitAcceptor
- Direct Known Subclasses:
ArrayInstruction
,ClassInstruction
,CmpInstruction
,ConstantInstruction
,ConvertInstruction
,LocalVariableInstruction
,MathInstruction
,NewArrayInstruction
,ReturnInstruction
,StackInstruction
Any typed instruction.
- Author:
- Abe White
-
Method Summary
Modifier and TypeMethodDescriptiongetType()
Return the type for this instruction.Return the type for this instruction.abstract String
Return the type name for this instruction.Set the type of this instruction.abstract TypedInstruction
Set the type of this instruction.Set the type of this instruction.Methods inherited from class serp.bytecode.Instruction
acceptVisit, equalsInstruction, getByteIndex, getClassLoader, getCode, getLineNumber, getLogicalStackChange, getName, getOpcode, getPool, getProject, getStackChange, isValid
-
Method Details
-
getTypeName
Return the type name for this instruction. If the type has not been set, this method will return null. -
getType
Return the type for this instruction. If the type has not been set, this method will return null. -
getTypeBC
Return the type for this instruction. If the type has not been set, this method will return null. -
setType
Set the type of this instruction. Types that have no direct support will be converted accordingly.- Returns:
- this instruction, for method chaining
-
setType
Set the type of this instruction. Types that have no direct support will be converted accordingly.- Returns:
- this instruction, for method chaining
-
setType
Set the type of this instruction. Types that have no direct support will be converted accordingly.- Returns:
- this instruction, for method chaining
-