Module org.glavo.classfile
Package org.glavo.classfile.impl
Class AbstractInstruction.UnboundTableSwitchInstruction
java.lang.Object
org.glavo.classfile.impl.AbstractElement
org.glavo.classfile.impl.AbstractInstruction
org.glavo.classfile.impl.AbstractInstruction.UnboundInstruction
org.glavo.classfile.impl.AbstractInstruction.UnboundTableSwitchInstruction
- All Implemented Interfaces:
ClassFileElement,CodeElement,Instruction,TableSwitchInstruction
- Enclosing class:
AbstractInstruction
public static final class AbstractInstruction.UnboundTableSwitchInstruction
extends AbstractInstruction.UnboundInstruction
implements TableSwitchInstruction
-
Nested Class Summary
Nested classes/interfaces inherited from class org.glavo.classfile.impl.AbstractInstruction
AbstractInstruction.BoundArgumentConstantInstruction, AbstractInstruction.BoundBranchInstruction, AbstractInstruction.BoundFieldInstruction, AbstractInstruction.BoundIncrementInstruction, AbstractInstruction.BoundInstruction, AbstractInstruction.BoundInvokeDynamicInstruction, AbstractInstruction.BoundInvokeInstruction, AbstractInstruction.BoundInvokeInterfaceInstruction, AbstractInstruction.BoundJsrInstruction, AbstractInstruction.BoundLoadConstantInstruction, AbstractInstruction.BoundLoadInstruction, AbstractInstruction.BoundLookupSwitchInstruction, AbstractInstruction.BoundNewMultidimensionalArrayInstruction, AbstractInstruction.BoundNewObjectInstruction, AbstractInstruction.BoundNewPrimitiveArrayInstruction, AbstractInstruction.BoundNewReferenceArrayInstruction, AbstractInstruction.BoundRetInstruction, AbstractInstruction.BoundStoreInstruction, AbstractInstruction.BoundTableSwitchInstruction, AbstractInstruction.BoundTypeCheckInstruction, AbstractInstruction.SwitchCaseImpl, AbstractInstruction.UnboundArgumentConstantInstruction, AbstractInstruction.UnboundArrayLoadInstruction, AbstractInstruction.UnboundArrayStoreInstruction, AbstractInstruction.UnboundBranchInstruction, AbstractInstruction.UnboundConvertInstruction, AbstractInstruction.UnboundFieldInstruction, AbstractInstruction.UnboundIncrementInstruction, AbstractInstruction.UnboundInstruction, AbstractInstruction.UnboundIntrinsicConstantInstruction, AbstractInstruction.UnboundInvokeDynamicInstruction, AbstractInstruction.UnboundInvokeInstruction, AbstractInstruction.UnboundJsrInstruction, AbstractInstruction.UnboundLoadConstantInstruction, AbstractInstruction.UnboundLoadInstruction, AbstractInstruction.UnboundLookupSwitchInstruction, AbstractInstruction.UnboundMonitorInstruction, AbstractInstruction.UnboundNewMultidimensionalArrayInstruction, AbstractInstruction.UnboundNewObjectInstruction, AbstractInstruction.UnboundNewPrimitiveArrayInstruction, AbstractInstruction.UnboundNewReferenceArrayInstruction, AbstractInstruction.UnboundNopInstruction, AbstractInstruction.UnboundOperatorInstruction, AbstractInstruction.UnboundRetInstruction, AbstractInstruction.UnboundReturnInstruction, AbstractInstruction.UnboundStackInstruction, AbstractInstruction.UnboundStoreInstruction, AbstractInstruction.UnboundTableSwitchInstruction, AbstractInstruction.UnboundThrowInstruction, AbstractInstruction.UnboundTypeCheckInstruction -
Constructor Summary
ConstructorsConstructorDescriptionUnboundTableSwitchInstruction(int lowValue, int highValue, Label defaultTarget, List<SwitchCase> cases) -
Method Summary
Modifier and TypeMethodDescriptioncases()Returns the cases of the switch.Returns the default target of the switch.intReturns the high value of the switch target range, inclusive.intlowValue()Returns the low value of the switch target range, inclusive.toString()voidwriteTo(DirectCodeBuilder writer) Methods inherited from class org.glavo.classfile.impl.AbstractInstruction
opcode, sizeInBytesMethods inherited from class org.glavo.classfile.impl.AbstractElement
writeTo, writeTo, writeToMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface org.glavo.classfile.Instruction
opcode, sizeInBytes
-
Constructor Details
-
UnboundTableSwitchInstruction
public UnboundTableSwitchInstruction(int lowValue, int highValue, Label defaultTarget, List<SwitchCase> cases)
-
-
Method Details
-
lowValue
public int lowValue()Description copied from interface:TableSwitchInstructionReturns the low value of the switch target range, inclusive.- Specified by:
lowValuein interfaceTableSwitchInstruction- Returns:
- the low value of the switch target range, inclusive
-
highValue
public int highValue()Description copied from interface:TableSwitchInstructionReturns the high value of the switch target range, inclusive.- Specified by:
highValuein interfaceTableSwitchInstruction- Returns:
- the high value of the switch target range, inclusive
-
defaultTarget
Description copied from interface:TableSwitchInstructionReturns the default target of the switch.- Specified by:
defaultTargetin interfaceTableSwitchInstruction- Returns:
- the default target of the switch
-
cases
Description copied from interface:TableSwitchInstructionReturns the cases of the switch.- Specified by:
casesin interfaceTableSwitchInstruction- Returns:
- the cases of the switch
-
writeTo
- Overrides:
writeToin classAbstractInstruction.UnboundInstruction
-
toString
- Overrides:
toStringin classAbstractInstruction.UnboundInstruction
-