Package org.aopalliance.intercept
Interface FieldAccess
- All Superinterfaces:
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:
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final int
The read access type (seegetAccessType()
).static final int
The write access type (seegetAccessType()
). -
Method Summary
Modifier and TypeMethodDescriptionint
Returns the access type.getField()
Gets the field being accessed.Gets the value that must be set to the field.Methods inherited from interface org.aopalliance.intercept.Joinpoint
getStaticPart, getThis, proceed
-
Field Details
-
READ
static final int READThe read access type (seegetAccessType()
).- See Also:
-
WRITE
static final int WRITEThe write access type (seegetAccessType()
).- See Also:
-
-
Method Details
-
getField
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
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
-