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

org.xmlet.regexapi.MinMatchZeroOrOne Maven / Gradle / Ivy

Go to download

Uses XsdAsmFaster to generate a fluent API that allows the manipulation of the regex language.

The newest version!
package org.xmlet.regexapi;

import java.util.function.Consumer;

public final class MinMatchZeroOrOne implements CustomAttributeGroup, Z>, MatchingOperationsAll1, Z> {
   protected final Z parent;
   protected final ElementVisitor visitor;

   public MinMatchZeroOrOne(ElementVisitor visitor) {
      this.visitor = visitor;
      this.parent = null;
      visitor.visitElementMinMatchZeroOrOne(this);
   }

   public MinMatchZeroOrOne(Z parent) {
      this.parent = parent;
      this.visitor = parent.getVisitor();
      this.visitor.visitElementMinMatchZeroOrOne(this);
   }

   protected MinMatchZeroOrOne(Z parent, ElementVisitor visitor, boolean shouldVisit) {
      this.parent = parent;
      this.visitor = visitor;
      if (shouldVisit) {
         visitor.visitElementMinMatchZeroOrOne(this);
      }

   }

   public Z __() {
      this.visitor.visitParentMinMatchZeroOrOne(this);
      return this.parent;
   }

   public final MinMatchZeroOrOne dynamic(Consumer> consumer) {
      this.visitor.visitOpenDynamic();
      consumer.accept(this);
      this.visitor.visitCloseDynamic();
      return this;
   }

   public final MinMatchZeroOrOne of(Consumer> consumer) {
      consumer.accept(this);
      return this;
   }

   public Z getParent() {
      return this.parent;
   }

   public final ElementVisitor getVisitor() {
      return this.visitor;
   }

   public String getName() {
      return "minMatchZeroOrOne";
   }

   public final MinMatchZeroOrOne self() {
      return this;
   }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy