org.aspectbench.runtime.reflect
Class JoinPointImpl

java.lang.Object
  extended byorg.aspectbench.runtime.reflect.JoinPointImpl
All Implemented Interfaces:
JoinPoint
Direct Known Subclasses:
JoinPointImpl

public class JoinPointImpl
extends java.lang.Object
implements JoinPoint


Nested Class Summary
static class JoinPointImpl.StaticPartImpl
           
 
Nested classes inherited from class org.aspectj.lang.JoinPoint
JoinPoint.StaticPart
 
Field Summary
 
Fields inherited from interface org.aspectj.lang.JoinPoint
ADVICE_EXECUTION, CONSTRUCTOR_CALL, CONSTRUCTOR_EXECUTION, EXCEPTION_HANDLER, FIELD_GET, FIELD_SET, INITIALIZATION, METHOD_CALL, METHOD_EXECUTION, PREINTIALIZATION, STATICINITIALIZATION
 
Constructor Summary
JoinPointImpl(JoinPoint.StaticPart staticPart, java.lang.Object _this, java.lang.Object target, java.lang.Object[] args)
           
 
Method Summary
 java.lang.Object[] getArgs()
          Returns the arguments at this join point.
 java.lang.String getKind()
          Returns a String representing the kind of join point.
 Signature getSignature()
          Returns the signature at the join point.
 SourceLocation getSourceLocation()
          Returns the source location corresponding to the join point.
 JoinPoint.StaticPart getStaticPart()
           Returns an object that encapsulates the static parts of this join point
 java.lang.Object getTarget()
           Returns the target object.
 java.lang.Object getThis()
           Returns the currently executing object.
 java.lang.String toLongString()
          Returns an extended string representation of the join point.
 java.lang.String toShortString()
          Returns an abbreviated string representation of the join point.
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

JoinPointImpl

public JoinPointImpl(JoinPoint.StaticPart staticPart,
                     java.lang.Object _this,
                     java.lang.Object target,
                     java.lang.Object[] args)
Method Detail

getThis

public java.lang.Object getThis()
Description copied from interface: JoinPoint

Returns the currently executing object. This will always be the same object as that matched by the this pointcut designator. Unless you specifically need this reflective access, you should use the this pointcut designator to get at this object for better static typing and performance.

Returns null when there is no currently executing object available. This includes all join points that occur in a static context.

Specified by:
getThis in interface JoinPoint

getTarget

public java.lang.Object getTarget()
Description copied from interface: JoinPoint

Returns the target object. This will always be the same object as that matched by the target pointcut designator. Unless you specifically need this reflective access, you should use the target pointcut designator to get at this object for better static typing and performance.

Returns null when there is no target object.

Specified by:
getTarget in interface JoinPoint

getArgs

public java.lang.Object[] getArgs()
Description copied from interface: JoinPoint

Returns the arguments at this join point.

Specified by:
getArgs in interface JoinPoint

getStaticPart

public JoinPoint.StaticPart getStaticPart()
Description copied from interface: JoinPoint

Returns an object that encapsulates the static parts of this join point

Specified by:
getStaticPart in interface JoinPoint

getKind

public java.lang.String getKind()
Description copied from interface: JoinPoint
Returns a String representing the kind of join point. This String is guaranteed to be interned. getStaticPart().getKind() returns the same object.

Specified by:
getKind in interface JoinPoint

getSignature

public Signature getSignature()
Description copied from interface: JoinPoint
Returns the signature at the join point. getStaticPart().getSignature() returns the same object

Specified by:
getSignature in interface JoinPoint

getSourceLocation

public SourceLocation getSourceLocation()
Description copied from interface: JoinPoint

Returns the source location corresponding to the join point.

If there is no source location available, returns null.

Returns the SourceLocation of the defining class for default constructors.

getStaticPart().getSourceLocation() returns the same object.

Specified by:
getSourceLocation in interface JoinPoint

toString

public final java.lang.String toString()
Specified by:
toString in interface JoinPoint

toShortString

public final java.lang.String toShortString()
Description copied from interface: JoinPoint
Returns an abbreviated string representation of the join point.

Specified by:
toShortString in interface JoinPoint

toLongString

public final java.lang.String toLongString()
Description copied from interface: JoinPoint
Returns an extended string representation of the join point.

Specified by:
toLongString in interface JoinPoint