All Downloads are FREE. Search and download functionalities are using the official Maven repository.

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;
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy