com.maintainj.aspect
Interface ISequenceJoinPoint

All Superinterfaces:
java.io.Serializable
All Known Implementing Classes:
StackJoinPoint

public interface ISequenceJoinPoint
extends java.io.Serializable

Interface for a join point information that is used by MaintainJ plug-in.

Author:
Choudary Kothapalli

Method Summary
 CallSignature getCallSignature()
          Returns CallSignature for this join point
 long getEndTime()
          End time of this method call as returned by System.currentTimeMillis()
 ISequenceJoinPoint getMatchingJoinPoint()
          Returns the matching join point.
 long getResponseTime()
          Returns the response time of this method in milliseconds.
 java.lang.String getSourceLocation()
          The source file name and the line number where this call originates.
 long getStartTime()
          Start time of this method call as returned by System.currentTimeMillis()
 java.lang.String getTargetClass()
          The target class name with package name
 java.lang.String getThisClass()
          The source class name with package name
 java.lang.String getWithinType()
          The name of the class where this method is defined.
 int hashCode()
          hashCode for this join point.
 boolean isReturnCall()
          Returns true if this is a return call
 boolean isSelfCall()
          Returns true if this is a self call
 

Method Detail

getCallSignature

CallSignature getCallSignature()
Returns CallSignature for this join point

Returns:
a CallSignature

getEndTime

long getEndTime()
End time of this method call as returned by System.currentTimeMillis()

Returns:
End time of this method call as returned by System.currentTimeMillis()

getMatchingJoinPoint

ISequenceJoinPoint getMatchingJoinPoint()
Returns the matching join point. When called on the forward call, return the return call and vice versa.

Returns:
Returns the matching join point. When called on the forward call, return the return call and vice versa.

getResponseTime

long getResponseTime()
Returns the response time of this method in milliseconds.

Returns:
Returns the response time of this method in milliseconds.

getSourceLocation

java.lang.String getSourceLocation()
The source file name and the line number where this call originates. The source location string must be in the format SourceFileName.java:lineNumber
Ex: CelsiusConverter.java:75

Returns:
returns the source file name and the line number where this call originates.

getStartTime

long getStartTime()
Start time of this method call as returned by System.currentTimeMillis()

Returns:
Start time of this method call as returned by System.currentTimeMillis()

getTargetClass

java.lang.String getTargetClass()
The target class name with package name

Returns:

getThisClass

java.lang.String getThisClass()
The source class name with package name

Returns:
the source class name

getWithinType

java.lang.String getWithinType()
The name of the class where this method is defined. When a method defined in super class is called by a sub-class instance, this returns the super class name.

Returns:
same value as returned by thisJoinPoint.getSourceLocation().getWithinType()

hashCode

int hashCode()
hashCode for this join point. This should be same for both forward and return calls. This should be unique in the join point list.

Overrides:
hashCode in class java.lang.Object
Returns:

isReturnCall

boolean isReturnCall()
Returns true if this is a return call

Returns:

isSelfCall

boolean isSelfCall()
Returns true if this is a self call

Returns:
true if this is a self call