com.sun.btrace.annotations
Enum Kind

java.lang.Object
  extended by java.lang.Enum<Kind>
      extended by com.sun.btrace.annotations.Kind
All Implemented Interfaces:
java.io.Serializable, java.lang.Comparable<Kind>

public enum Kind
extends java.lang.Enum<Kind>

This enum is specified in the Location annotation to specify probe point kind. This enum identifies various "points" of interest within a Java method's bytecode.

Author:
A. Sundararajan

Enum Constant Summary
ARRAY_GET
          array element load
ARRAY_SET
          array element store
CALL
          method call
CATCH
          exception catch
CHECKCAST
          checkcast
ENTRY
          method entry
ERROR
          "return" because of no-catch
FIELD_GET
          getting a field value
FIELD_SET
          setting a field value
INSTANCEOF
          instanceof check
LINE
          source line number
NEW
          new object created
NEWARRAY
          new array created
RETURN
          return from method
SYNC_ENTRY
          entry into a synchronized block
SYNC_EXIT
          exit from a synchronized block
THROW
          throwing an exception
 
Method Summary
static Kind valueOf(java.lang.String name)
          Returns the enum constant of this type with the specified name.
static Kind[] 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

ARRAY_GET

public static final Kind ARRAY_GET
array element load


ARRAY_SET

public static final Kind ARRAY_SET
array element store


CALL

public static final Kind CALL
method call


CATCH

public static final Kind CATCH
exception catch


CHECKCAST

public static final Kind CHECKCAST
checkcast


ENTRY

public static final Kind ENTRY
method entry


ERROR

public static final Kind ERROR
"return" because of no-catch


FIELD_GET

public static final Kind FIELD_GET
getting a field value


FIELD_SET

public static final Kind FIELD_SET
setting a field value


INSTANCEOF

public static final Kind INSTANCEOF
instanceof check


LINE

public static final Kind LINE
source line number


NEW

public static final Kind NEW
new object created


NEWARRAY

public static final Kind NEWARRAY
new array created


RETURN

public static final Kind RETURN
return from method


SYNC_ENTRY

public static final Kind SYNC_ENTRY
entry into a synchronized block


SYNC_EXIT

public static final Kind SYNC_EXIT
exit from a synchronized block


THROW

public static final Kind THROW
throwing an exception

Method Detail

values

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

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

valueOf

public static Kind 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