public interface

FieldAccess

implements Joinpoint
org.aopalliance.intercept.FieldAccess

Class Overview

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

Summary

Constants
int READ The read access type (see getAccessType()).
int WRITE The write access type (see getAccessType()).
Public Methods
abstract int getAccessType()
Returns the access type.
abstract Field getField()
Gets the field being accessed.
abstract Object getValueToSet()
Gets the value that must be set to the field.
[Expand]
Inherited Methods
From interface org.aopalliance.intercept.Joinpoint

Constants

public static final int READ

The read access type (see getAccessType()).

Constant Value: 0 (0x00000000)

public static final int WRITE

The write access type (see getAccessType()).

Constant Value: 1 (0x00000001)

Public Methods

public abstract int getAccessType ()

Returns the access type.

Returns
  • FieldAccess.READ || FieldAccess.WRITE

public abstract Field getField ()

Gets the field being accessed.

This method is a frienly implementation of the getStaticPart() method (same result).

Returns
  • the field being accessed.

public abstract Object getValueToSet ()

Gets the value that must be set to the field.

This value can be intercepted and changed by a field interceptor.