KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > net > sf > cglib > transform > impl > AbstractInterceptFieldCallback


1 /*
2  * Copyright 2004 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  */

16 package net.sf.cglib.transform.impl;
17
18 /**
19  * @author Chris Nokleberg
20  */

21 public class AbstractInterceptFieldCallback implements InterceptFieldCallback {
22     
23     public int writeInt(Object JavaDoc obj, String JavaDoc name, int oldValue, int newValue) { return newValue; }
24     public char writeChar(Object JavaDoc obj, String JavaDoc name, char oldValue, char newValue) { return newValue; }
25     public byte writeByte(Object JavaDoc obj, String JavaDoc name, byte oldValue, byte newValue) { return newValue; }
26     public boolean writeBoolean(Object JavaDoc obj, String JavaDoc name, boolean oldValue, boolean newValue) { return newValue; }
27     public short writeShort(Object JavaDoc obj, String JavaDoc name, short oldValue, short newValue) { return newValue; }
28     public float writeFloat(Object JavaDoc obj, String JavaDoc name, float oldValue, float newValue) { return newValue; }
29     public double writeDouble(Object JavaDoc obj, String JavaDoc name, double oldValue, double newValue) { return newValue; }
30     public long writeLong(Object JavaDoc obj, String JavaDoc name, long oldValue, long newValue) { return newValue; }
31     public Object JavaDoc writeObject(Object JavaDoc obj, String JavaDoc name, Object JavaDoc oldValue, Object JavaDoc newValue) { return newValue; }
32
33     public int readInt(Object JavaDoc obj, String JavaDoc name, int oldValue) { return oldValue; }
34     public char readChar(Object JavaDoc obj, String JavaDoc name, char oldValue) { return oldValue; }
35     public byte readByte(Object JavaDoc obj, String JavaDoc name, byte oldValue) { return oldValue; }
36     public boolean readBoolean(Object JavaDoc obj, String JavaDoc name, boolean oldValue) { return oldValue; }
37     public short readShort(Object JavaDoc obj, String JavaDoc name, short oldValue) { return oldValue; }
38     public float readFloat(Object JavaDoc obj, String JavaDoc name, float oldValue) { return oldValue; }
39     public double readDouble(Object JavaDoc obj, String JavaDoc name, double oldValue) { return oldValue; }
40     public long readLong(Object JavaDoc obj, String JavaDoc name, long oldValue) { return oldValue; }
41     public Object JavaDoc readObject(Object JavaDoc obj, String JavaDoc name, Object JavaDoc oldValue) { return oldValue; }
42 }
43
Popular Tags