jasco.runtime.aspect
Class PCutpointConstructorApplicationDesignator

java.lang.Object
  extended by jasco.runtime.aspect.PCutpointConstructorApplicationDesignator
All Implemented Interfaces:
java.lang.Cloneable
Direct Known Subclasses:
PCutpointConstructorAnd, PCutpointConstructorArgs, PCutpointConstructorCall, PCutpointConstructorCflow, PCutpointConstructorExecute, PCutpointConstructorExecutionEqualsJoinpointHost, PCutpointConstructorExecutionHost, PCutpointConstructorMatchAll, PCutpointConstructorNot, PCutpointConstructorOr, PCutpointConstructorPHost, PCutpointConstructorRegular, PCutpointConstructorTarget, PCutpointConstructorWithincode

public abstract class PCutpointConstructorApplicationDesignator
extends java.lang.Object
implements java.lang.Cloneable

Abstract super class for all pointcut elements in hook constructors.


Field Summary
static java.lang.String NEWLINE
           
static java.lang.String TAB
           
 
Constructor Summary
PCutpointConstructorApplicationDesignator(PCutpointConstructorApplicationDesignator param)
           
PCutpointConstructorApplicationDesignator(PCutpointConstructorApplicationDesignator param, PCutpointConstructorApplicationDesignator param2)
           
 
Method Summary
 java.util.Vector allPointcuts()
           
 boolean checkAnnotation(java.lang.String signature, RuntimeContext context)
           
 PCutpointConstructorApplicationDesignator deepCopy()
           
 boolean doNotCache()
           
 boolean dontLoadClasses(MethodJoinpoint jp)
           
abstract  boolean eval(MethodJoinpoint jp, java.util.Hashtable mappings, boolean forJutta)
          Evaluates to true when the pointcut triggers
 java.lang.String generateCreateCode()
           
abstract  java.lang.String generateCreateCode(java.lang.String argname)
           
protected  java.lang.String getNextArgName()
           
 PCutpointConstructorApplicationDesignator getParameter()
           
 PCutpointConstructorApplicationDesignator getParameter2()
           
 RuntimeContext getRuntimeContext(MethodJoinpoint jp)
           
protected static boolean isRegularExp(java.lang.String s)
           
 java.lang.String removeAnnotation(java.lang.String signature)
           
 void resetArgNames()
           
 void setParameter(PCutpointConstructorApplicationDesignator host)
           
 void setParameter2(PCutpointConstructorApplicationDesignator host)
           
abstract  java.lang.String toDescString()
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

NEWLINE

public static final java.lang.String NEWLINE

TAB

public static final java.lang.String TAB
See Also:
Constant Field Values
Constructor Detail

PCutpointConstructorApplicationDesignator

public PCutpointConstructorApplicationDesignator(PCutpointConstructorApplicationDesignator param)

PCutpointConstructorApplicationDesignator

public PCutpointConstructorApplicationDesignator(PCutpointConstructorApplicationDesignator param,
                                                 PCutpointConstructorApplicationDesignator param2)
Method Detail

getParameter

public PCutpointConstructorApplicationDesignator getParameter()

getParameter2

public PCutpointConstructorApplicationDesignator getParameter2()

getRuntimeContext

public RuntimeContext getRuntimeContext(MethodJoinpoint jp)

dontLoadClasses

public boolean dontLoadClasses(MethodJoinpoint jp)

eval

public abstract boolean eval(MethodJoinpoint jp,
                             java.util.Hashtable mappings,
                             boolean forJutta)
Evaluates to true when the pointcut triggers

Parameters:
jp - current joinpoint
mappings - from variables to concrete method signatures, fe: 1 -> * *(*), 2-> void test.main.Main.run()
forJutta - is this for analyzing jutta, meaning is this runtimecontext a static context. Fe methods in cflow might change, target might change. The current method does not change however.
Returns:

generateCreateCode

public abstract java.lang.String generateCreateCode(java.lang.String argname)

generateCreateCode

public java.lang.String generateCreateCode()

checkAnnotation

public boolean checkAnnotation(java.lang.String signature,
                               RuntimeContext context)

removeAnnotation

public java.lang.String removeAnnotation(java.lang.String signature)

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

resetArgNames

public void resetArgNames()

getNextArgName

protected java.lang.String getNextArgName()

isRegularExp

protected static boolean isRegularExp(java.lang.String s)

toDescString

public abstract java.lang.String toDescString()

doNotCache

public boolean doNotCache()

allPointcuts

public java.util.Vector allPointcuts()

deepCopy

public PCutpointConstructorApplicationDesignator deepCopy()

setParameter

public void setParameter(PCutpointConstructorApplicationDesignator host)

setParameter2

public void setParameter2(PCutpointConstructorApplicationDesignator host)