1/* 2 * Copyright 2003 The Apache Software Foundation 3 * 4 * Licensed under the Apache License, Version 2.0 (the "License"); 5 * you may not use this file except in compliance with the License. 6 * You may obtain a copy of the License at 7 * 8 * http://www.apache.org/licenses/LICENSE-2.0 9 * 10 * Unless required by applicable law or agreed to in writing, software 11 * distributed under the License is distributed on an "AS IS" BASIS, 12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 * See the License for the specific language governing permissions and 14 * limitations under the License. 15 */ 16package org.mockito.cglib.transform.impl; 17 18/** 19 * @author Juozas Baliuka 20 */ 21public interface InterceptFieldCallback { 22 23 int writeInt(Object obj, String name, int oldValue, int newValue); 24 char writeChar(Object obj, String name, char oldValue, char newValue); 25 byte writeByte(Object obj, String name, byte oldValue, byte newValue); 26 boolean writeBoolean(Object obj, String name, boolean oldValue, boolean newValue); 27 short writeShort(Object obj, String name, short oldValue, short newValue); 28 float writeFloat(Object obj, String name, float oldValue, float newValue); 29 double writeDouble(Object obj, String name, double oldValue, double newValue); 30 long writeLong(Object obj, String name, long oldValue, long newValue); 31 Object writeObject(Object obj, String name, Object oldValue, Object newValue); 32 33 int readInt(Object obj, String name, int oldValue); 34 char readChar(Object obj, String name, char oldValue); 35 byte readByte(Object obj, String name, byte oldValue); 36 boolean readBoolean(Object obj, String name, boolean oldValue); 37 short readShort(Object obj, String name, short oldValue); 38 float readFloat(Object obj, String name, float oldValue); 39 double readDouble(Object obj, String name, double oldValue); 40 long readLong(Object obj, String name, long oldValue); 41 Object readObject(Object obj, String name, Object oldValue); 42} 43