sofya.base
Class SConstants.BlockLabel

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

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

Type-safe enumeration for block labels.


Field Summary
static SConstants.BlockLabel BLOCK
          Character label for block type Basic
static SConstants.BlockLabel CALL
          Character label for block type Call
static SConstants.BlockLabel ENTRY
          Character label for block type Entry
static SConstants.BlockLabel EXIT
          Character label for block type Exit
static SConstants.BlockLabel RETURN
          Character label for block type Return
 
Method Summary
static SConstants.BlockLabel fromChar(char c)
          Converts a character to its equivalent type-safe block label constant (for deserialization).
 char toChar()
          Converts this type-safe constant to a character (for serialization).
 java.lang.String toString()
          Returns a string representation of the block label.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

ENTRY

public static final SConstants.BlockLabel ENTRY
Character label for block type Entry


EXIT

public static final SConstants.BlockLabel EXIT
Character label for block type Exit


CALL

public static final SConstants.BlockLabel CALL
Character label for block type Call


RETURN

public static final SConstants.BlockLabel RETURN
Character label for block type Return


BLOCK

public static final SConstants.BlockLabel BLOCK
Character label for block type Basic

Method Detail

toChar

public char toChar()
Converts this type-safe constant to a character (for serialization).


fromChar

public static SConstants.BlockLabel fromChar(char c)
Converts a character to its equivalent type-safe block label constant (for deserialization).


toString

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

Overrides:
toString in class java.lang.Object