io.toolisticon.aptk.tools.matcher.impl.IsPackageElementMatcher Maven / Gradle / Ivy
package io.toolisticon.aptk.tools.matcher.impl;
import io.toolisticon.aptk.tools.ElementUtils;
import io.toolisticon.aptk.tools.matcher.ImplicitMatcher;
import javax.lang.model.element.Element;
/**
* Implicit matcher that checks if a passed element is an PackageElement.
*/
public class IsPackageElementMatcher implements ImplicitMatcher {
@Override
public boolean check(ELEMENT element) {
return ElementUtils.CastElement.isPackageElement(element);
}
}