sofya.base
Class SConstants.BranchObjectType

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

public static final class SConstants.BranchObjectType
extends SConstants.TraceObjectType

Type-safe class constant to represent branch edges as the object type for instrumentation and tracing.


Field Summary
 
Fields inherited from class sofya.base.SConstants.TraceObjectType
BASIC_BLOCK, BRANCH_EDGE, IBASIC_BLOCK, IBRANCH_EDGE, ISEMANTIC_EVENT, SEMANTIC_EVENT
 
Method Summary
 int toInt()
          Converts this type-safe constant to an integer (for serialization).
 java.lang.String toString()
          Returns a string representation of the branch edge object type.
 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.
 int validMask()
          Returns the bitmask with all valid bits for this trace object type set to 1 (one).
 
Methods inherited from class sofya.base.SConstants.TraceObjectType
fromInt
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Method Detail

toInt

public int toInt()
Description copied from class: SConstants.TraceObjectType
Converts this type-safe constant to an integer (for serialization).

Specified by:
toInt in class SConstants.TraceObjectType

validMask

public int validMask()
Description copied from class: SConstants.TraceObjectType
Returns the bitmask with all valid bits for this trace object type set to 1 (one).

Specified by:
validMask in class SConstants.TraceObjectType

toString

public java.lang.String toString()
Returns a string representation of the branch edge object type.

Overrides:
toString in class java.lang.Object

toString

public java.lang.String toString(int bitMask)
Description copied from class: SConstants.TraceObjectType
Converts a bitmask for this trace object type into a string representation indicating the associated types of entities marked as enabled in the bitmask.

Specified by:
toString in class SConstants.TraceObjectType