org.eclipse.actf.validation.core
Class MethodExecutionPointTarget

java.lang.Object
  extended by org.eclipse.actf.validation.core.ExecutionPointTarget
      extended by org.eclipse.actf.validation.core.MethodExecutionPointTarget

public class MethodExecutionPointTarget
extends ExecutionPointTarget

The concrete class for the description of single method execution point target at which validations are to be triggered. This specialized class defines the method name, parameter types and parameter values to be used when the method execution point class is generated.

Author:
John Buslawski

Field Summary
protected  TargetArgument[] arguments
           
protected  String methodName
           
 
Fields inherited from class org.eclipse.actf.validation.core.ExecutionPointTarget
isPointcutExpression, isPolymorphic, targetClassName, type
 
Constructor Summary
MethodExecutionPointTarget(String targetClassName, String methodName, boolean polymorphic)
          Create method-based execution point target.
MethodExecutionPointTarget(String targetClassName, String methodName, TargetArgument[] arguments, boolean polymorphic)
          create a descriptor for a method execution point.
 
Method Summary
 TargetArgument[] getArguments()
           
 String getMethodName()
           
 void printTarget(int indent)
           
 void setArguments(TargetArgument[] arguments)
           
 void setMethodName(String methodName)
           
 
Methods inherited from class org.eclipse.actf.validation.core.ExecutionPointTarget
getPolymorphic, getTargetClassName, getType, isPointcutExpression, setPolymorphic, setTargetClassName, setType
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

methodName

protected String methodName

arguments

protected TargetArgument[] arguments
Constructor Detail

MethodExecutionPointTarget

public MethodExecutionPointTarget(String targetClassName,
                                  String methodName,
                                  boolean polymorphic)
Create method-based execution point target. The target class name is the name of the class that will trigger the generation of the containing execution point and start the validation. Execution point targets can be polymorphic and apply to other classes in the target class hierarchy or just to that specific target class. Method-based execution points define the name of the method of the target class, and any arguments, on which the containing execution point will be generated.

Parameters:
targetClassName - - name of class whose instances are to be captured
methodName - - method at which an execution point is formed
polymorphic - - determines if this execution point target applies to other classes in the target's hierarchy

MethodExecutionPointTarget

public MethodExecutionPointTarget(String targetClassName,
                                  String methodName,
                                  TargetArgument[] arguments,
                                  boolean polymorphic)
create a descriptor for a method execution point. The target class name is the name of the class whose instances will be captured by this descriptor. If an asterisk '*' is found anywhere within the name, the name is assumed to be a part of an aspect-oriented environment's pointcut expression. In this case, the type should be set to METHOD_EXECUTION_POINT and all other parameters may be nul.

Parameters:
targetClassName - - name of class whose instances are to be captured
methodName - - method at which an execution point is formed
arguments - - type name/value pairs representing the arguments passed to a execution point target
polymorphic - - determines if this execution point target applies to other classes in the target's hierarchy
Method Detail

getMethodName

public String getMethodName()
Returns:
name of method whose invocation triggers a validation

setMethodName

public void setMethodName(String methodName)
Parameters:
methodName - - name of method whose invocation triggers a validation

getArguments

public TargetArgument[] getArguments()
Returns:
arguments for a method whose invocation triggers a validation

setArguments

public void setArguments(TargetArgument[] arguments)
Parameters:
arguments - - the arguments for a method whose invocation triggers a validation

printTarget

public void printTarget(int indent)