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

com.jenzz.noop.processor.ElementValidator Maven / Gradle / Ivy

The newest version!
package com.jenzz.noop.processor;

import com.jenzz.noop.processor.exceptions.RuleException;
import com.jenzz.noop.processor.rules.Rule;

import javax.lang.model.element.Element;

class ElementValidator {

    private final Rule[] rules;

    public ElementValidator(Rule... rules) {
        this.rules = rules;
    }

    public void validate(Element element) throws RuleException {
        for (Rule rule : rules) {
            rule.validate(element);
        }
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy