com.sun.btrace.annotations
Annotation Type Location


@Retention(value=RUNTIME)
@Target(value=METHOD)
public @interface Location

This annotation specifies a particular "location" within a traced/probed java method for BTrace probe specifications.

Author:
A. Sundararajan

Optional Element Summary
 java.lang.String clazz
          Specifies the fully qualified class name for certain kind of probe locations.
 java.lang.String field
          Specifies the field name for Kind.FIELD_SET and Kind.FIELD_GET probes.
 int line
          Specifies the line number for Kind.LINE probes.
 java.lang.String method
          Specifies the method name for certain kind of probe locations.
 java.lang.String type
          Specifies field or method type for certain kind of probe locations.
 Kind value
          Kind of the location.
 Where where
          Specifies where do want to probe with respect to the location of interest.
 

value

public abstract Kind value
Kind of the location.

See Also:
Kind
Default:
com.sun.btrace.annotations.Kind.ENTRY

where

public abstract Where where
Specifies where do want to probe with respect to the location of interest.

See Also:
Where
Default:
com.sun.btrace.annotations.Where.BEFORE

clazz

public abstract java.lang.String clazz
Specifies the fully qualified class name for certain kind of probe locations.

Default:
""

method

public abstract java.lang.String method
Specifies the method name for certain kind of probe locations.

Default:
""

field

public abstract java.lang.String field
Specifies the field name for Kind.FIELD_SET and Kind.FIELD_GET probes.

See Also:
Kind.FIELD_GET, Kind.FIELD_SET
Default:
""

type

public abstract java.lang.String type
Specifies field or method type for certain kind of probe locations. The type is specified like in Java source - except the method or field name and parameter names are not included.

Default:
""

line

public abstract int line
Specifies the line number for Kind.LINE probes.

See Also:
Kind.LINE
Default:
0