ataspectj.reflect
Class BlockJoinPoint

java.lang.Object
  extended by ataspectj.reflect.BlockJoinPointStaticPart
      extended by ataspectj.reflect.BlockJoinPoint
All Implemented Interfaces:
org.aspectj.lang.JoinPoint, org.aspectj.lang.JoinPoint.StaticPart

public class BlockJoinPoint
extends BlockJoinPointStaticPart
implements org.aspectj.lang.JoinPoint

Provide a reflective access to block join points.


Nested Class Summary
 
Nested classes/interfaces inherited from interface org.aspectj.lang.JoinPoint
org.aspectj.lang.JoinPoint.EnclosingStaticPart, org.aspectj.lang.JoinPoint.StaticPart
 
Field Summary
 
Fields inherited from class ataspectj.reflect.BlockJoinPointStaticPart
_annBlock, _annName, _jp, _longString, _sp, _startC, _startL, KIND
 
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, PREINITIALIZATION, STATICINITIALIZATION, SYNCHRONIZATION_LOCK, SYNCHRONIZATION_UNLOCK
 
Constructor Summary
BlockJoinPoint(org.aspectj.lang.JoinPoint jp)
          The constructor of the class
 
Method Summary
 java.lang.Object[] getArgs()
          Retrieve the member value of the block annotation.
 java.lang.String getKind()
          Returns a String representing the kind of join point.
 org.aspectj.lang.Signature getSignature()
          Returns the signature at the join point.
 org.aspectj.lang.reflect.SourceLocation getSourceLocation()
          Returns the source location corresponding to the annotated block.
 org.aspectj.lang.JoinPoint.StaticPart getStaticPart()
          Retrieves the static part of this block join point.
 java.lang.Object getTarget()
          Retrieves the annotated block.
 java.lang.Object getThis()
          Retrieves the annotated block.
 java.lang.String toLongString()
          Returns an extended string representation of the join point
 java.lang.String toShortString()
          Returns an extended string representation of the join point
 java.lang.String toString()
          Returns an extended string representation of the join point
 
Methods inherited from class ataspectj.reflect.BlockJoinPointStaticPart
explodeLongString, getAnnotatedBlock, getAnnotationName, getClassName, getStartColumn, getStartLine
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

BlockJoinPoint

public BlockJoinPoint(org.aspectj.lang.JoinPoint jp)
The constructor of the class

Parameters:
jp - the current join point.
Method Detail

getArgs

public java.lang.Object[] getArgs()
Retrieve the member value of the block annotation. return Object[] the array of member value of the block annotation.

Specified by:
getArgs in interface org.aspectj.lang.JoinPoint

getKind

public java.lang.String getKind()
Description copied from class: BlockJoinPointStaticPart
Returns a String representing the kind of join point.

Specified by:
getKind in interface org.aspectj.lang.JoinPoint
Specified by:
getKind in interface org.aspectj.lang.JoinPoint.StaticPart
Overrides:
getKind in class BlockJoinPointStaticPart
Returns:
a String representing the kind of the join point
See Also:
BlockJoinPointStaticPart.getKind()

getSignature

public org.aspectj.lang.Signature getSignature()
Description copied from class: BlockJoinPointStaticPart
Returns the signature at the join point.

Specified by:
getSignature in interface org.aspectj.lang.JoinPoint
Specified by:
getSignature in interface org.aspectj.lang.JoinPoint.StaticPart
Overrides:
getSignature in class BlockJoinPointStaticPart
Returns:
the Signature reppresenting the block.
See Also:
BlockJoinPointStaticPart.getSignature()

getSourceLocation

public org.aspectj.lang.reflect.SourceLocation getSourceLocation()
Description copied from class: BlockJoinPointStaticPart
Returns the source location corresponding to the annotated block.

Specified by:
getSourceLocation in interface org.aspectj.lang.JoinPoint
Specified by:
getSourceLocation in interface org.aspectj.lang.JoinPoint.StaticPart
Overrides:
getSourceLocation in class BlockJoinPointStaticPart
Returns:
the SourceLocation corresponding to the annotated block.
See Also:
BlockJoinPointStaticPart.getSourceLocation()

getStaticPart

public org.aspectj.lang.JoinPoint.StaticPart getStaticPart()
Retrieves the static part of this block join point.

Specified by:
getStaticPart in interface org.aspectj.lang.JoinPoint
Returns:
JoinPoint.StaticPart the static part of this block join point.

getTarget

public java.lang.Object getTarget()
Retrieves the annotated block.

Specified by:
getTarget in interface org.aspectj.lang.JoinPoint
Returns:
Object the annotated block.

getThis

public java.lang.Object getThis()
Retrieves the annotated block.

Specified by:
getThis in interface org.aspectj.lang.JoinPoint
Returns:
Object the annotated block.

toLongString

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

Specified by:
toLongString in interface org.aspectj.lang.JoinPoint
Specified by:
toLongString in interface org.aspectj.lang.JoinPoint.StaticPart
Overrides:
toLongString in class BlockJoinPointStaticPart
Returns:
a String representing the join point.
See Also:
BlockJoinPointStaticPart.toLongString()

toShortString

public java.lang.String toShortString()
Description copied from class: BlockJoinPointStaticPart
Returns an extended string representation of the join point

Specified by:
toShortString in interface org.aspectj.lang.JoinPoint
Specified by:
toShortString in interface org.aspectj.lang.JoinPoint.StaticPart
Overrides:
toShortString in class BlockJoinPointStaticPart
Returns:
a String representing the join point.
See Also:
BlockJoinPointStaticPart.toShortString()

toString

public java.lang.String toString()
Description copied from class: BlockJoinPointStaticPart
Returns an extended string representation of the join point

Specified by:
toString in interface org.aspectj.lang.JoinPoint
Specified by:
toString in interface org.aspectj.lang.JoinPoint.StaticPart
Overrides:
toString in class BlockJoinPointStaticPart
Returns:
a String representing the join point.
See Also:
BlockJoinPointStaticPart.toString()