01: /*
02: * FieldAccessor.java
03: *
04: * Copyright (c) 2007 Sun Microsystems, Inc. All Rights Reserved.
05: *
06: * See the file "LICENSE.txt" for information on usage and redistribution of
07: * this file, and for a DISCLAIMER OF ALL WARRANTIES.
08: */
09: package pnuts.compiler;
10:
11: /**
12: * Proxy interface for field access
13: */
14: public abstract class FieldAccessor {
15:
16: /**
17: * Get the field value
18: *
19: * @param target the target object
20: * @return the field value
21: */
22: public abstract Object get(Object target);
23:
24: /**
25: * Set the field value
26: *
27: * @param target the target object
28: * @param value a new value for the field
29: */
30: public abstract void set(Object target, Object value);
31: }
|