01: /*
02: * Copyright 2003 The Apache Software Foundation
03: *
04: * Licensed under the Apache License, Version 2.0 (the "License");
05: * you may not use this file except in compliance with the License.
06: * You may obtain a copy of the License at
07: *
08: * http://www.apache.org/licenses/LICENSE-2.0
09: *
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: */
16: package net.sf.cglib.transform.impl;
17:
18: /**
19: * @author Juozas Baliuka
20: */
21: public interface InterceptFieldCallback {
22:
23: int writeInt(Object obj, String name, int oldValue, int newValue);
24:
25: char writeChar(Object obj, String name, char oldValue, char newValue);
26:
27: byte writeByte(Object obj, String name, byte oldValue, byte newValue);
28:
29: boolean writeBoolean(Object obj, String name, boolean oldValue,
30: boolean newValue);
31:
32: short writeShort(Object obj, String name, short oldValue,
33: short newValue);
34:
35: float writeFloat(Object obj, String name, float oldValue,
36: float newValue);
37:
38: double writeDouble(Object obj, String name, double oldValue,
39: double newValue);
40:
41: long writeLong(Object obj, String name, long oldValue, long newValue);
42:
43: Object writeObject(Object obj, String name, Object oldValue,
44: Object newValue);
45:
46: int readInt(Object obj, String name, int oldValue);
47:
48: char readChar(Object obj, String name, char oldValue);
49:
50: byte readByte(Object obj, String name, byte oldValue);
51:
52: boolean readBoolean(Object obj, String name, boolean oldValue);
53:
54: short readShort(Object obj, String name, short oldValue);
55:
56: float readFloat(Object obj, String name, float oldValue);
57:
58: double readDouble(Object obj, String name, double oldValue);
59:
60: long readLong(Object obj, String name, long oldValue);
61:
62: Object readObject(Object obj, String name, Object oldValue);
63: }
|