jasco.runtime.aspect
Class PCutpointConstructorApplicationDesignator

java.lang.Object
  extended by jasco.runtime.aspect.PCutpointConstructorApplicationDesignator
Direct Known Subclasses:
PCutpointConstructorAnd, PCutpointConstructorCall, PCutpointConstructorCflow, PCutpointConstructorExecute, PCutpointConstructorMatchAll, PCutpointConstructorNot, PCutpointConstructorOr, PCutpointConstructorRegular, PCutpointConstructorTarget, PCutpointConstructorWithincode

public abstract class PCutpointConstructorApplicationDesignator
extends java.lang.Object


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)
           
 boolean doNotCache()
           
abstract  boolean eval(RuntimeContext context, 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()
           
protected static boolean isRegularExp(java.lang.String s)
           
 java.lang.String removeAnnotation(java.lang.String signature)
           
 void resetArgNames()
           
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()

eval

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

Parameters:
context - runtime context available
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()