sofya.base
Class SConstants.TraceObjectType

java.lang.Object
  extended by sofya.base.SConstants.TraceObjectType
Direct Known Subclasses:
SConstants.BlockObjectType, SConstants.BranchObjectType, SConstants.EDObjectType
Enclosing interface:
SConstants

public abstract static class SConstants.TraceObjectType
extends java.lang.Object

Base class for type-safe class constants encoding the types of program entities (trace objects) that can be instrumented and traced.


Field Summary
static SConstants.TraceObjectType BASIC_BLOCK
          Type-safe constant for the basic block trace object type.
static SConstants.TraceObjectType BRANCH_EDGE
          Type-safe constant for the branch edge trace object type.
static int IBASIC_BLOCK
          Integer constant for the basic block trace object type.
static int IBRANCH_EDGE
          Integer constant for the branch edge trace object type.
static int ISEMANTIC_EVENT
          Integer constant for the semantic event object type.
static SConstants.TraceObjectType SEMANTIC_EVENT
          Type-safe constant for the semantic event trace object type.
 
Method Summary
static SConstants.TraceObjectType fromInt(int i)
          Converts an integer to its equivalent type-safe trace object type constant (for deserialization).
abstract  int toInt()
          Converts this type-safe constant to an integer (for serialization).
abstract  java.lang.String toString(int bitMask)
          Converts a bitmask for this trace object type into a string representation indicating the associated types of entities marked as enabled in the bitmask.
abstract  int validMask()
          Returns the bitmask with all valid bits for this trace object type set to 1 (one).
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

IBASIC_BLOCK

public static final int IBASIC_BLOCK
Integer constant for the basic block trace object type.

See Also:
Constant Field Values

IBRANCH_EDGE

public static final int IBRANCH_EDGE
Integer constant for the branch edge trace object type.

See Also:
Constant Field Values

ISEMANTIC_EVENT

public static final int ISEMANTIC_EVENT
Integer constant for the semantic event object type.

See Also:
Constant Field Values

BASIC_BLOCK

public static final SConstants.TraceObjectType BASIC_BLOCK
Type-safe constant for the basic block trace object type.


BRANCH_EDGE

public static final SConstants.TraceObjectType BRANCH_EDGE
Type-safe constant for the branch edge trace object type.


SEMANTIC_EVENT

public static final SConstants.TraceObjectType SEMANTIC_EVENT
Type-safe constant for the semantic event trace object type.

Method Detail

toInt

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


fromInt

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


validMask

public abstract int validMask()
Returns the bitmask with all valid bits for this trace object type set to 1 (one).


toString

public abstract java.lang.String toString(int bitMask)
Converts a bitmask for this trace object type into a string representation indicating the associated types of entities marked as enabled in the bitmask.