org.eclipse.actf.validation.core
Class MethodExecutionPointTarget
java.lang.Object
org.eclipse.actf.validation.core.ExecutionPointTarget
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
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
methodName
protected String methodName
arguments
protected TargetArgument[] arguments
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 capturedmethodName
- - method at which an execution point is formedpolymorphic
- - 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 capturedmethodName
- - method at which an execution point is formedarguments
- - type name/value pairs representing the arguments passed to a execution point targetpolymorphic
- - determines if this execution point target applies to other
classes in the target's hierarchy
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)