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

top.hendrixshen.magiclib.carpet.api.annotation.Rule Maven / Gradle / Ivy

There is a newer version: 0.7.398+fe2125a-beta
Show newest version
package top.hendrixshen.magiclib.carpet.api.annotation;

import top.hendrixshen.magiclib.carpet.api.Validator;
import top.hendrixshen.magiclib.dependency.api.RuleDependencyPredicate;
import top.hendrixshen.magiclib.dependency.api.annotation.Dependencies;
import top.hendrixshen.magiclib.dependency.impl.RuleDependencyPredicates;

import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;

@Target(ElementType.FIELD)
@Retention(RetentionPolicy.RUNTIME)
public @interface Rule {
    String[] categories();

    String[] options() default {};

    boolean strict() default true;

    String appSource() default "";

    Class>[] validators() default {};

    Dependencies dependencies() default @Dependencies;

    Class predicate() default RuleDependencyPredicates.TrueRulePredicate.class;
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy