|                                                                                                              1
 27  package ch.ethz.inf.iks.jvmai.jvmdi;
 28
 29  import ch.ethz.jvmai.FieldJoinPoint;
 31  import ch.ethz.jvmai.FieldModificationJoinPoint;
 32
 33
 40  public class FieldModificationJoinPointImpl
 41         extends FieldJoinPointImpl
 42         implements FieldModificationJoinPoint
 43  {
 44
 45      private Integer
  intNewValue = new Integer  (1); 46      private Boolean
  booleanNewValue = new Boolean  (false); 47      private Short
  shortNewValue = new Short  ((short)1); 48      private Float
  floatNewValue = new Float  (1.0); 49      private Double
  doubleNewValue = new Double  (1.0); 50      private Byte
  byteNewValue = new Byte  ((byte)1); 51      private Long
  longNewValue = new Long  (1); 52      private Character
  charNewValue = new Character  ('a'); 53
 54      protected Object
  newValue; 55
 56      protected FieldModificationJoinPointImpl(ControlFlow cflow, JoinPointContext ctx)
 57      {
 58      super(cflow,ctx);
 59      }
 60
 61
 63      public Object
  getNewValue() 64      {
 65      return newValue;
 66      }
 67
 68
 70      public void setNewValue(Object
  newValue) 71      {
 72      throw new RuntimeException
  ("not implemented"); 73      }
 74
 75
 77      public String
  getKind() 78      {
 79      return FieldModificationJoinPoint.KIND;
 80      }
 81
 82    public int getMask()
 83      {
 84        return MASK_CODE_JP |MASK_FIELD_JP | MASK_FIELD_MODIFICATION_JP;
 85      }
 86
 87  }
 88
 89
                                                                                                                                                                                                             |                                                                       
 
 
 
 
 
                                                                                   Popular Tags                                                                                                                                                                                              |