org.testifyproject.bytebuddy.matcher.IsNamedMatcher Maven / Gradle / Ivy
package org.testifyproject.bytebuddy.matcher;
import lombok.EqualsAndHashCode;
import org.testifyproject.bytebuddy.description.NamedElement;
/**
* An element matcher that matches a named element only if is explicitly named.
*
* @param The type of the matched entity.
*/
@EqualsAndHashCode(callSuper = false)
public class IsNamedMatcher extends ElementMatcher.Junction.AbstractBase {
@Override
public boolean matches(T target) {
return target.isNamed();
}
@Override
public String toString() {
return "isNamed()";
}
}