org.aopalliance.intercept

Interface FieldAccess

All Superinterfaces:
Joinpoint

public interface FieldAccess
extends Joinpoint

This interface represents a field access in the program.

A field access is a joinpoint and can be intercepted by a field interceptor.

See Also:
FieldInterceptor

Field Summary

static int
READ
The read access type (see getAccessType()).
static int
WRITE
The write access type (see getAccessType()).

Method Summary

int
getAccessType()
Returns the access type.
Field
getField()
Gets the field being accessed.
Object
getValueToSet()
Gets the value that must be set to the field.

Methods inherited from interface org.aopalliance.intercept.Joinpoint

getStaticPart, getThis, proceed

Field Details

READ

public static final int READ
Field Value:
0

WRITE

public static final int WRITE
Field Value:
1

Method Details

getAccessType

public int getAccessType()
Returns the access type.
Returns:
FieldAccess.READ || FieldAccess.WRITE

getField

public Field getField()
Returns:
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.