org.aopalliance.intercept
Interface FieldAccess
- Joinpoint
public interface FieldAccess
This interface represents a field access in the program.
A field access is a joinpoint and can be intercepted by a field
interceptor.
READ
public static final int READ
WRITE
public static final int WRITE
getAccessType
public int getAccessType()
Returns the access type.
- FieldAccess.READ || FieldAccess.WRITE
getField
public Field getField()
Gets the field being accessed.
This method is a frienly implementation of the
Joinpoint.getStaticPart()
method (same result).
- the field being accessed.
getValueToSet
public Object getValueToSet()
Gets the value that must be set to the field.
This value can be intercepted and changed by a field
interceptor.