@Test public void testParameterPatternMatch() { NameMatch anyParamReturnVoid = new NameMatch(SignatureUtil.createMethodSignature(null, "void")); assertTrue(anyParamReturnVoid.match("()V")); assertTrue(anyParamReturnVoid.match("(I)V")); assertTrue(anyParamReturnVoid.match("(Ljava/lang/String;)V")); assertFalse(anyParamReturnVoid.match("()J")); }
public boolean match(String value) { if (exact != null) { return exact.equals(value); } if (pattern != null) { return pattern.matcher(value).matches(); } return true; }
NameMatch { public boolean match(String value) { if (exact != null) { return exact.equals(value); } if (pattern != null) { return pattern.matcher(value).matches(); } return true; } }
NameMatch { public boolean match(String value) { if (exact != null) { return exact.equals(value); } if (pattern != null) { return pattern.matcher(value).matches(); } return true; } NameMatch(String matchSpec); }
NameMatch { public boolean match(String value) { if (exact != null) { return exact.equals(value); } if (pattern != null) { return pattern.matcher(value).matches(); } return true; } NameMatch(String matchSpec); @Override int hashCode(); boolean isUniversal(); @Override boolean equals(Object o); String getValue(); boolean match(String value); @Override String toString(); String getSpec(); }
NameMatch { public boolean match(String value) { if (exact != null) { return exact.equals(value); } if (pattern != null) { return pattern.matcher(value).matches(); } return true; } NameMatch(String matchSpec); @Override int hashCode(); boolean isUniversal(); @Override boolean equals(Object o); String getValue(); boolean match(String value); @Override String toString(); String getSpec();  }