public class ScopeImpl extends java.lang.Object implements Scope
Filters methods based on class name, method name, method parameters and return type.
Name of the filtered method is specified as follows:
returnparam classname.methodname(parameters)
wildcards Some filter patterns might be completely or partly substituted with "*" wild card that might be expanded to none or unspecified number of non-white character.
methodname is a mandatory part of the pattern specified. The method name might be partly or completely replaced using "*". To filter in class initializer or class instance constructor specify respectively "clinit" or "init".
Examples:
returnparam is the returning parameter of the method. It is specified by fully qualified name of the class or pritimive type. If the returnparam is missing, it matches all the return types. Wild cards might substitute pattern partly or completely.
Examples:
classname is the fully qualified name of the class where the filtered method resides. Classname is not required. If it's not specified all classes match. Packagename might be omitted and in such case all packages with classname specified do match. To specify a class without any package add "[default]" as packagename. Wild cards might substitute pattern partly or completely.
Examples:
parameters are specified same as returnparam and are separated by ",". Parameter can be partly or completely substituted with "*". ".." can be supplied instead of last parameter specification and matches all remaining method parameters.
Examples:
Complete examples:
Constructor and Description |
---|
ScopeImpl(java.lang.String scopeExpression) |
Modifier and Type | Method and Description |
---|---|
boolean |
matches(java.lang.String className,
java.lang.String methodName,
java.lang.String methodDesc)
The implementation should return true if the className, methodName and
methodDesc matches the contract of the scope.
|
java.lang.String |
toString() |
public ScopeImpl(java.lang.String scopeExpression) throws ch.usi.dag.disl.exception.ScopeParserException
ch.usi.dag.disl.exception.ScopeParserException
public boolean matches(java.lang.String className, java.lang.String methodName, java.lang.String methodDesc)
Scope
public java.lang.String toString()
toString
in class java.lang.Object