Package 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
Fields Modifier and Type Field Description static int
READ
The read access type (seegetAccessType()
).static int
WRITE
The write access type (seegetAccessType()
).
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description int
getAccessType()
Returns the access type.java.lang.reflect.Field
getField()
Gets the field being accessed.java.lang.Object
getValueToSet()
Gets the value that must be set to the field.-
Methods inherited from interface org.aopalliance.intercept.Joinpoint
getStaticPart, getThis, proceed
-
-
-
-
Field Detail
-
READ
static final int READ
The read access type (seegetAccessType()
).- See Also:
- Constant Field Values
-
WRITE
static final int WRITE
The write access type (seegetAccessType()
).- See Also:
- Constant Field Values
-
-
Method Detail
-
getField
java.lang.reflect.Field getField()
Gets the field being accessed.This method is a frienly implementation of the
Joinpoint.getStaticPart()
method (same result).- Returns:
- the field being accessed.
-
getValueToSet
java.lang.Object getValueToSet()
Gets the value that must be set to the field.This value can be intercepted and changed by a field interceptor.
-
getAccessType
int getAccessType()
Returns the access type.- Returns:
- FieldAccess.READ || FieldAccess.WRITE
-
-