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

org.xmlet.regexapi.NegativeLookBehind 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 NegativeLookBehind implements CustomAttributeGroup, Z>, MatchingOperationsAll1, Z> {
   protected final Z parent;
   protected final ElementVisitor visitor;

   public NegativeLookBehind(ElementVisitor visitor) {
      this.visitor = visitor;
      this.parent = null;
      visitor.visitElementNegativeLookBehind(this);
   }

   public NegativeLookBehind(Z parent) {
      this.parent = parent;
      this.visitor = parent.getVisitor();
      this.visitor.visitElementNegativeLookBehind(this);
   }

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

   }

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

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

   public final NegativeLookBehind 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 "negativeLookBehind";
   }

   public final NegativeLookBehind self() {
      return this;
   }

   public final NegativeLookBehind attrSubExpr(String attrSubExpr) {
      this.visitor.visitAttributeSubExpr(attrSubExpr);
      return this;
   }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy