java.lang.Object
java.lang.Enum<BlockType>
org.benf.cfr.reader.bytecode.analysis.parse.utils.BlockType
All Implemented Interfaces:
Serializable, Comparable<BlockType>, Constable

public enum BlockType extends Enum<BlockType>
  • Enum Constant Details

    • WHILELOOP

      public static final BlockType WHILELOOP
    • DOLOOP

      public static final BlockType DOLOOP
    • UNCONDITIONALDOLOOP

      public static final BlockType UNCONDITIONALDOLOOP
    • FORLOOP

      public static final BlockType FORLOOP
    • TRYBLOCK

      public static final BlockType TRYBLOCK
    • SIMPLE_IF_TAKEN

      public static final BlockType SIMPLE_IF_TAKEN
    • SIMPLE_IF_ELSE

      public static final BlockType SIMPLE_IF_ELSE
    • CATCHBLOCK

      public static final BlockType CATCHBLOCK
    • SWITCH

      public static final BlockType SWITCH
    • CASE

      public static final BlockType CASE
    • ANONYMOUS

      public static final BlockType ANONYMOUS
    • MONITOR

      public static final BlockType MONITOR
  • Field Details

    • breakable

      private final boolean breakable
    • isloop

      private final boolean isloop
  • Constructor Details

    • BlockType

      private BlockType(boolean breakable, boolean isloop)
  • Method Details

    • values

      public static BlockType[] values()
      Returns an array containing the constants of this enum class, in the order they are declared.
      Returns:
      an array containing the constants of this enum class, in the order they are declared
    • valueOf

      public static BlockType valueOf(String name)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)
      Parameters:
      name - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      IllegalArgumentException - if this enum class has no constant with the specified name
      NullPointerException - if the argument is null
    • isBreakable

      public boolean isBreakable()
    • isLoop

      public boolean isLoop()