JoinPoint
| Kind of class: | interface |
|---|---|
| Inherits from: | BasicInterface |
| Implemented by: | |
| Author: | Simon Wacker |
| Classpath: | org.as2lib.aop.JoinPoint |
| File last modified: | Monday, 25 July 2005, 17:31:12 |
JoinPoint represents an identifiable point in a program.points could by theory also be try..catch blocks, the join points offered by this
framework are limited to members of classes or interfaces, these are methods and
properties.
See also:
Summary
Instance methods
getInfo
function getInfo (
Void) : TypeMemberInfo
Returns the info of the represented type member; this information is also known
as the join point's static part. Note that the type of this join point is also
part of this join point's static part.
as the join point's static part. Note that the type of this join point is also
part of this join point's static part.
Returns:
the info representing the static part of this join point
getThis
function getThis (
Void)
Returns the logical this of the interception. This means if this join point is
part of a call-pointcut the result will refer to the object where the call was
made from. If this join point is part of an execution-, set- or get-pointcut the
result will refer to the object that represented method or property resides in.
part of a call-pointcut the result will refer to the object where the call was
made from. If this join point is part of an execution-, set- or get-pointcut the
result will refer to the object that represented method or property resides in.
Returns:
the logical this of this join point depending on the used pointcut
See also:
getType
function getType (
Void) : Number
Returns the type of the join point.
Supported types are declared as constants in the org.as2lib.aop.joinpoint.AbstractJoinPoint
class.
Returns:
the type of this join point
matches
function matches (
pattern:String) : Boolean
Checks if this join point matches the given
used matcher the pattern may contain wildcards like
A pattern could for example be
pattern. Depending on theused matcher the pattern may contain wildcards like
"*" and "..".A pattern could for example be
"org..BasicClass.*".Parameters:
pattern:
the pattern to match against this join point
Returns:
true if the given pattern matches this join point elsefalseproceed
function proceed (
args:Array)
Executes the type member represented by this join point passing the given
args and returns the result.Parameters:
args:
the arguments to use for the execution
Returns:
the result of the type member execution
snapshot
function snapshot (
Void) : JoinPoint
Returns a copy of this join point that reflects its current state.
It is common practice to create a new join point for a not-fixed method info.
This is when the underlying concrete method this join point reflects may change.
To make the concrete method and other parts that may change fixed you can use
this method to get a new fixed join point, a snapshot.
Returns:
a snapshot of this join point