Class InsnLookupSwitch

java.lang.Object
com.sun.jdo.api.persistence.enhancer.classfile.Insn
com.sun.jdo.api.persistence.enhancer.classfile.InsnLookupSwitch
All Implemented Interfaces:
VMConstants

public class InsnLookupSwitch extends Insn
Special instruction form for the opc_lookupswitch instruction
  • Constructor Details

    • InsnLookupSwitch

      public InsnLookupSwitch(InsnTarget defaultOp, int[] matchesOp, InsnTarget[] targetsOp)
      Constructor for opc_lookupswitch
  • Method Details

    • nStackArgs

      public int nStackArgs()
      Description copied from class: Insn
      How many words of stack operands does this instruction take?
      Specified by:
      nStackArgs in class Insn
    • nStackResults

      public int nStackResults()
      Description copied from class: Insn
      How many words of stack results does this instruction deposit?
      Specified by:
      nStackResults in class Insn
    • argTypes

      public String argTypes()
      What are the types of the stack operands ?
      Specified by:
      argTypes in class Insn
    • resultTypes

      public String resultTypes()
      What are the types of the stack results?
      Specified by:
      resultTypes in class Insn
    • branches

      public boolean branches()
      Description copied from class: Insn
      Does this instruction branch?
      Specified by:
      branches in class Insn
    • markTargets

      public void markTargets()
      Mark possible branch targets
      Overrides:
      markTargets in class Insn
    • defaultTarget

      public InsnTarget defaultTarget()
      Return the defaultTarget for the switch
    • switchCases

      public int[] switchCases()
      Return the case values of the switch.
    • switchTargets

      public InsnTarget[] switchTargets()
      Return the targets for the cases of the switch.