1 27 package ch.ethz.inf.iks.jvmai.jvmdi; 28 29 import ch.ethz.jvmai.FieldJoinPoint; 31 import java.lang.reflect.Field ; 32 import ch.ethz.jvmai.JoinPointKinds; 33 34 42 public class FieldJoinPointImpl extends CodeJoinPointImpl implements FieldJoinPoint,JoinPointKinds 43 { 44 45 protected Field field; 46 private Object value; 47 48 49 protected FieldJoinPointImpl(ControlFlow cflow, JoinPointContext ctx) 50 { 51 super(cflow,ctx); 52 signature = new FieldSignatureImpl(this); 53 } 54 55 58 public Field getField() 59 { 60 return field; 61 } 62 63 65 public Object getValue() 66 { 67 return value; 68 } 69 70 public int getMask() 71 { 72 return MASK_CODE_JP | MASK_FIELD_JP; 73 } 74 76 public Class getTargetClass() 77 { 78 return field.getDeclaringClass(); 79 } 80 } 81 82 | Popular Tags |