Access keys

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.
Although this
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.

Summary

Instance methods
Instance methods inherited from BasicInterface

Instance methods

getInfo

function getInfo (
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.
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.
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 pattern. Depending on the
used 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 else
false

proceed

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

update

function update (
thiz) : JoinPoint
Returns a copy of this join point with an updated logical this. This join point
is left unchanged.
Parameters:
thiz:
the new logical this
Returns:
a copy of this join point with an updated logical this
See also: