Class org.as2lib.aop.joinpoint.MethodJoinPoint

????
   +--AbstractJoinPoint
      +--org.as2lib.aop.joinpoint.MethodJoinPoint

Implemented Interfaces

JoinPoint

Description

MethodJoinPoint represents a method as join point.

Method Index

new MethodJoinPoint()

getInfo(), getType(), proceed(), snapshot(), update()

Constructor Detail

MethodJoinPoint

public function MethodJoinPoint(info:MethodInfo, thiz)

Constructs a new MethodJoinPoint instance.

Parameters

infothe info of the represented method
thizthe logical this of the interception

Throws

IllegalArgumentExceptionif argument info is null or undefined

Method Detail

getInfo

public function getInfo(Void):TypeMemberInfo

Returns the info of the represented method. This is a MethodInfo instance.

Return

the info of the represented method

Specified By

getInfo() in org.as2lib.aop.JoinPoint

proceed

public function proceed(args:Array)

Proceeds this join point by executing the represented method passing the given arguments and returning the result of the execution.

Parameters

argsthe arguments to use for the execution

Return

the result of the execution

Specified By

proceed() in org.as2lib.aop.JoinPoint

getType

public function getType(Void):Number

Returns the type of this join point.

Return

AbstractJoinPoint#METHOD

Specified By

getType() in org.as2lib.aop.JoinPoint

update

public function update(thiz):JoinPoint

Returns a copy of this join point with an updated logical this. This join point is left unchanged.

Parameters

thizthe new logical this

Return

a copy of this join point with an updated logical this

Specified By

update() in org.as2lib.aop.JoinPoint

snapshot

public 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.

Return

a snapshot of this join point

Specified By

snapshot() in org.as2lib.aop.JoinPoint