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

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

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

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

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

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

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

   public final ConditionalNamedExpressionCondNameFirst 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 "conditionalNamedExpression";
   }

   public final ConditionalNamedExpressionCondNameFirst self() {
      return this;
   }

   public ConditionalNamedExpressionComplete condExpressionSecond(String condExpressionSecond) {
      ((CondExpressionSecond)(new CondExpressionSecond(this, this.visitor, true)).text(condExpressionSecond)).__();
      return new ConditionalNamedExpressionComplete(this.parent, this.visitor, true);
   }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy