io.toolisticon.aptk.tools.matcher.impl.HasNoParametersMatcher Maven / Gradle / Ivy
package io.toolisticon.aptk.tools.matcher.impl;
import io.toolisticon.aptk.tools.matcher.ImplicitMatcher;
import javax.lang.model.element.ExecutableElement;
/**
* Implicit matcher that checks if a passed ExecutableElement has no arguments.
*/
public class HasNoParametersMatcher implements ImplicitMatcher {
@Override
public boolean check(ExecutableElement element) {
return element != null && element.getParameters().size() == 0;
}
}