Enum BlockType

  • All Implemented Interfaces:
    java.io.Serializable, java.lang.Comparable<BlockType>

    public enum BlockType
    extends java.lang.Enum<BlockType>
    • Enum Constant Detail

      • 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
      • ANONYMOUS

        public static final BlockType ANONYMOUS
      • MONITOR

        public static final BlockType MONITOR
    • Field Detail

      • breakable

        private final boolean breakable
      • isloop

        private final boolean isloop
    • Constructor Detail

      • BlockType

        private BlockType​(boolean breakable,
                          boolean isloop)
    • Method Detail

      • values

        public static BlockType[] values()
        Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
        for (BlockType c : BlockType.values())
            System.out.println(c);
        
        Returns:
        an array containing the constants of this enum type, in the order they are declared
      • valueOf

        public static BlockType valueOf​(java.lang.String name)
        Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (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:
        java.lang.IllegalArgumentException - if this enum type has no constant with the specified name
        java.lang.NullPointerException - if the argument is null
      • isBreakable

        public boolean isBreakable()
      • isLoop

        public boolean isLoop()