test/compiler/compilercontrol/share/method/MethodGenerator.java

Print this page
rev 9056 : [mq]: existing-directives

*** 122,131 **** --- 122,148 ---- md.aSignature.setSeparator(Separator.NONE); return md; } /** + * Method descriptor that matches any method. Its full signature is *.* + * + * @param executable executable used to generate descriptor + * @return MethodDescriptor instance + */ + public static MethodDescriptor anyMatchDescriptor(Executable executable) { + MethodDescriptor md = new MethodDescriptor(executable); + Combination<PatternType> patterns = new Combination<>(PatternType.ANY, + PatternType.ANY, PatternType.ANY); + md.aClass.setSeparator(Separator.SLASH); + md.aMethod.setSeparator(Separator.DOT); + md.aSignature.setSeparator(Separator.NONE); + md.setPatterns(patterns); + return md; + } + + /** * Generates a list of method patterns from the pool of methods * * @return a list of test cases */ public List<MethodDescriptor> getTests() {