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

io.toolisticon.aptk.tools.matcher.CriteriaMatcher Maven / Gradle / Ivy

The newest version!
package io.toolisticon.aptk.tools.matcher;

import javax.lang.model.element.Element;

/**
 * Matcher that checks if passed criteria is fulfilled
 */
public interface CriteriaMatcher extends BaseMatcher{

    /**
     * Applies matcher to element to determine if element matches a criteria or not.
     *
     * @param element    the element  to check
     * @param toCheckFor the criteria to check for
     * @return true if the element matches the passed criteria, otherwise false
     */
    boolean checkForMatchingCharacteristic(E element, T toCheckFor);

    /**
     * Creates a string representation for the passed criteria.
     *
     * @param toGetStringRepresentationFor the criteria to get a string representation for.
     * @return the string representation
     */
    String getStringRepresentationOfPassedCharacteristic(T toGetStringRepresentationFor);

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy