sofya.base
Class SConstants.BlockType

java.lang.Object
  extended by sofya.base.SConstants.BlockType
Enclosing interface:
SConstants

public static final class SConstants.BlockType
extends java.lang.Object

Type-safe enumeration for block types.


Field Summary
static SConstants.BlockType BLOCK
          Type-safe constant for basic block.
static SConstants.BlockType CALL
          Type-safe constant for call block.
static SConstants.BlockType ENTRY
          Type-safe constant for entry block.
static SConstants.BlockType EXIT
          Type-safe constant for exit block.
static int IBLOCK
          Integer constant for generic block
static int ICALL
          Integer constant for call block
static int IENTRY
          Integer constant for entry block
static int IEXIT
          Integer constant for exit block
static int IRETURN
          Integer constant for return block (return from call)
static int MASK_BASIC
          Bitmask to enable basic blocks.
static int MASK_CALL
          Bitmask to enable call blocks.
static int MASK_ENTRY
          Bitmask to enable entry blocks.
static int MASK_EXIT
          Bitmask to enable exit blocks.
static int MASK_RETURN
          Bitmask to enable return blocks.
static int MASK_VALID
          Bitmask for screening for valid block type bits.
static SConstants.BlockType RETURN
          Type-safe constant for return block.
 
Method Summary
static SConstants.BlockType fromInt(int i)
          Converts an integer to its equivalent type-safe block type constant (for deserialization).
 int toInt()
          Converts this type-safe constant to an integer (for serialization).
 int toMask()
          Converts this type-safe constant to a bitmask.
 java.lang.String toString()
          Returns a string representation of the block type.
static java.lang.String toString(int bitMask)
          Converts a bitmask encoding enabled block types into a string representation of the enabled types.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

IENTRY

public static final int IENTRY
Integer constant for entry block

See Also:
Constant Field Values

IEXIT

public static final int IEXIT
Integer constant for exit block

See Also:
Constant Field Values

ICALL

public static final int ICALL
Integer constant for call block

See Also:
Constant Field Values

IRETURN

public static final int IRETURN
Integer constant for return block (return from call)

See Also:
Constant Field Values

IBLOCK

public static final int IBLOCK
Integer constant for generic block

See Also:
Constant Field Values

ENTRY

public static final SConstants.BlockType ENTRY
Type-safe constant for entry block.


EXIT

public static final SConstants.BlockType EXIT
Type-safe constant for exit block.


CALL

public static final SConstants.BlockType CALL
Type-safe constant for call block.


RETURN

public static final SConstants.BlockType RETURN
Type-safe constant for return block.


BLOCK

public static final SConstants.BlockType BLOCK
Type-safe constant for basic block.


MASK_BASIC

public static final int MASK_BASIC
Bitmask to enable basic blocks.

See Also:
Constant Field Values

MASK_ENTRY

public static final int MASK_ENTRY
Bitmask to enable entry blocks.

See Also:
Constant Field Values

MASK_EXIT

public static final int MASK_EXIT
Bitmask to enable exit blocks.

See Also:
Constant Field Values

MASK_CALL

public static final int MASK_CALL
Bitmask to enable call blocks.

See Also:
Constant Field Values

MASK_RETURN

public static final int MASK_RETURN
Bitmask to enable return blocks.

See Also:
Constant Field Values

MASK_VALID

public static final int MASK_VALID
Bitmask for screening for valid block type bits.

See Also:
Constant Field Values
Method Detail

toMask

public int toMask()
Converts this type-safe constant to a bitmask.


toInt

public int toInt()
Converts this type-safe constant to an integer (for serialization).


fromInt

public static SConstants.BlockType fromInt(int i)
Converts an integer to its equivalent type-safe block type constant (for deserialization).


toString

public java.lang.String toString()
Returns a string representation of the block type.

Overrides:
toString in class java.lang.Object

toString

public static java.lang.String toString(int bitMask)
Converts a bitmask encoding enabled block types into a string representation of the enabled types.