edu.rice.cs.cunit
Enum SyncPointBuffer.SP

java.lang.Object
  extended by java.lang.Enum<SyncPointBuffer.SP>
      extended by edu.rice.cs.cunit.SyncPointBuffer.SP
All Implemented Interfaces:
java.io.Serializable, java.lang.Comparable<SyncPointBuffer.SP>
Enclosing class:
SyncPointBuffer

public static enum SyncPointBuffer.SP
extends java.lang.Enum<SyncPointBuffer.SP>

Enumeration of sync point codes.


Enum Constant Summary
END
          Code for the end of the trace.
LAST_VALID_CODE
          Last code used.
MONITORENTER
          Code for entering a synchronized block.
MONITOREXIT
          Code for leaving a synchronized block.
OBJID_MONITORENTER
          Code for entering a synchronized block to assign an object ID.
OBJID_MONITOREXIT
          Code for leaving a synchronized block to assign an object ID.
OBJID_TRYMONITORENTER
          Code for trying to enter a synchronized block to assign an object ID.
THREADEXIT
          Code for the end of a thread.
THREADID_MONITORENTER
          Code for entering a synchronized block to assign a thread ID.
THREADID_MONITOREXIT
          Code for leaving a synchronized block to assign a thread ID.
THREADID_TRYMONITORENTER
          Code for trying to enter a synchronized block to assign a thread ID.
THREADSTART
          Code for the start of a thread.
TRYMONITORENTER
          Code for trying to enter a synchronized block.
 
Field Summary
private  int _value
          Integer value of the enum.
 
Method Summary
 int intValue()
          Return the integer value of the enum.
static SyncPointBuffer.SP valueOf(java.lang.String name)
          Returns the enum constant of this type with the specified name.
static SyncPointBuffer.SP[] values()
          Returns an array containing the constants of this enum type, in the order they are declared.
 
Methods inherited from class java.lang.Enum
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

MONITORENTER

public static final SyncPointBuffer.SP MONITORENTER
Code for entering a synchronized block.


MONITOREXIT

public static final SyncPointBuffer.SP MONITOREXIT
Code for leaving a synchronized block.


TRYMONITORENTER

public static final SyncPointBuffer.SP TRYMONITORENTER
Code for trying to enter a synchronized block.


THREADSTART

public static final SyncPointBuffer.SP THREADSTART
Code for the start of a thread.


THREADEXIT

public static final SyncPointBuffer.SP THREADEXIT
Code for the end of a thread.


OBJID_MONITORENTER

public static final SyncPointBuffer.SP OBJID_MONITORENTER
Code for entering a synchronized block to assign an object ID. This synchronized block did not exist in the original program and is an artifact of the instrumentation. Object ID is 0; since SyncPointBuffer.class is used as lock, the value is meaningless.


OBJID_MONITOREXIT

public static final SyncPointBuffer.SP OBJID_MONITOREXIT
Code for leaving a synchronized block to assign an object ID. This synchronized block did not exist in the original program and is an artifact of the instrumentation. Object ID is set to the newly assigned object ID. SyncPointBuffer.class is used as lock, but its object ID is rather meaningless.


OBJID_TRYMONITORENTER

public static final SyncPointBuffer.SP OBJID_TRYMONITORENTER
Code for trying to enter a synchronized block to assign an object ID. This synchronized block did not exist in the original program and is an artifact of the instrumentation. Object ID is 0; since SyncPointBuffer.class is used as lock, the value is meaningless.


THREADID_MONITORENTER

public static final SyncPointBuffer.SP THREADID_MONITORENTER
Code for entering a synchronized block to assign a thread ID. This synchronized block did not exist in the original program and is an artifact of the instrumentation. Object ID is 0; since SyncPointBuffer.class is used as lock, the value is meaningless.


THREADID_MONITOREXIT

public static final SyncPointBuffer.SP THREADID_MONITOREXIT
Code for leaving a synchronized block to assign a thread ID. This synchronized block did not exist in the original program and is an artifact of the instrumentation. Object ID is set to the newly assigned thread ID. SyncPointBuffer.class is used as lock, but its object ID is rather meaningless.


THREADID_TRYMONITORENTER

public static final SyncPointBuffer.SP THREADID_TRYMONITORENTER
Code for trying to enter a synchronized block to assign a thread ID. This synchronized block did not exist in the original program and is an artifact of the instrumentation. Object ID is 0; since SyncPointBuffer.class is used as lock, the value is meaningless.


END

public static final SyncPointBuffer.SP END
Code for the end of the trace.


LAST_VALID_CODE

public static final SyncPointBuffer.SP LAST_VALID_CODE
Last code used.

Field Detail

_value

private int _value
Integer value of the enum.

Method Detail

values

public static SyncPointBuffer.SP[] 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 (SyncPointBuffer.SP c : SyncPointBuffer.SP.values())
    System.out.println(c);

Returns:
an array containing the constants of this enum type, in the order they are declared

valueOf

public static SyncPointBuffer.SP 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

intValue

public int intValue()
Return the integer value of the enum.

Returns:
integer value, ranging from 1 to SP_LAST_VALID_CODE.value() (inclusive)