KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > ch > ethz > prose > jvmai > jikesrvm > stub_weaver > FieldJoinPointImpl


1 package ch.ethz.prose.jvmai.jikesrvm.stub_weaver;
2
3 import com.ibm.JikesRVM.VM_JVMAI;
4 import java.lang.reflect.Field JavaDoc;
5 import ch.ethz.jvmai.*;
6
7 /**
8  * Concrete implementation of a CodeJoinPoint for the Jikes RVM.
9  *
10  * @author Johann Gyger
11  */

12 public class FieldJoinPointImpl extends CodeJoinPointImpl implements FieldJoinPoint {
13
14     /**
15      * Field ID of the field to which this join point belongs
16      */

17     public int fieldId = -1;
18
19     /**
20      * Field frame pointer. Used to retrieve the field target.
21      */

22     public int fieldFp = -1;
23
24     /**
25      * The target of a field join point differs from the target of a code join
26      * point: It is actually the owner of the field. See
27      * {@link com.ibm.JikesRVM.VM_JVMAI#getFieldTarget()}for more information.
28      */

29     public Object JavaDoc getTarget() {
30         return VM_JVMAI.getInstance().getFieldTarget(this);
31     }
32
33     public Field JavaDoc getField() {
34         return VM_JVMAI.getInstance().getField(this);
35     }
36
37     public Object JavaDoc getValue() {
38         return VM_JVMAI.getInstance().getFieldValue(this);
39     }
40
41 }
42
Popular Tags