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

hydra.ext.org.apache.tinkerpop.gremlin.TraversalSourceSpawnMethod Maven / Gradle / Ivy

The newest version!
// Note: this is an automatically generated file. Do not edit.

package hydra.ext.org.apache.tinkerpop.gremlin;

import java.io.Serializable;

public abstract class TraversalSourceSpawnMethod implements Serializable {
  public static final hydra.core.Name TYPE_NAME = new hydra.core.Name("hydra/ext/org/apache/tinkerpop/gremlin.TraversalSourceSpawnMethod");
  
  public static final hydra.core.Name FIELD_NAME_ADD_E = new hydra.core.Name("addE");
  
  public static final hydra.core.Name FIELD_NAME_ADD_V = new hydra.core.Name("addV");
  
  public static final hydra.core.Name FIELD_NAME_E = new hydra.core.Name("e");
  
  public static final hydra.core.Name FIELD_NAME_V = new hydra.core.Name("v");
  
  public static final hydra.core.Name FIELD_NAME_MERGE_V = new hydra.core.Name("mergeV");
  
  public static final hydra.core.Name FIELD_NAME_MERGE_E = new hydra.core.Name("mergeE");
  
  public static final hydra.core.Name FIELD_NAME_INJECT = new hydra.core.Name("inject");
  
  public static final hydra.core.Name FIELD_NAME_IO = new hydra.core.Name("io");
  
  public static final hydra.core.Name FIELD_NAME_CALL = new hydra.core.Name("call");
  
  public static final hydra.core.Name FIELD_NAME_UNION = new hydra.core.Name("union");
  
  private TraversalSourceSpawnMethod () {
  
  }
  
  public abstract  R accept(Visitor visitor) ;
  
  public interface Visitor {
    R visit(AddE instance) ;
    
    R visit(AddV instance) ;
    
    R visit(E instance) ;
    
    R visit(V instance) ;
    
    R visit(MergeV instance) ;
    
    R visit(MergeE instance) ;
    
    R visit(Inject instance) ;
    
    R visit(Io instance) ;
    
    R visit(Call instance) ;
    
    R visit(Union instance) ;
  }
  
  public interface PartialVisitor extends Visitor {
    default R otherwise(TraversalSourceSpawnMethod instance) {
      throw new IllegalStateException("Non-exhaustive patterns when matching: " + (instance));
    }
    
    default R visit(AddE instance) {
      return otherwise((instance));
    }
    
    default R visit(AddV instance) {
      return otherwise((instance));
    }
    
    default R visit(E instance) {
      return otherwise((instance));
    }
    
    default R visit(V instance) {
      return otherwise((instance));
    }
    
    default R visit(MergeV instance) {
      return otherwise((instance));
    }
    
    default R visit(MergeE instance) {
      return otherwise((instance));
    }
    
    default R visit(Inject instance) {
      return otherwise((instance));
    }
    
    default R visit(Io instance) {
      return otherwise((instance));
    }
    
    default R visit(Call instance) {
      return otherwise((instance));
    }
    
    default R visit(Union instance) {
      return otherwise((instance));
    }
  }
  
  public static final class AddE extends hydra.ext.org.apache.tinkerpop.gremlin.TraversalSourceSpawnMethod implements Serializable {
    public final hydra.ext.org.apache.tinkerpop.gremlin.StringArgumentOrNestedTraversal value;
    
    public AddE (hydra.ext.org.apache.tinkerpop.gremlin.StringArgumentOrNestedTraversal value) {
      java.util.Objects.requireNonNull((value));
      this.value = value;
    }
    
    @Override
    public boolean equals(Object other) {
      if (!(other instanceof AddE)) {
        return false;
      }
      AddE o = (AddE) (other);
      return value.equals(o.value);
    }
    
    @Override
    public int hashCode() {
      return 2 * value.hashCode();
    }
    
    @Override
    public  R accept(Visitor visitor) {
      return visitor.visit(this);
    }
  }
  
  public static final class AddV extends hydra.ext.org.apache.tinkerpop.gremlin.TraversalSourceSpawnMethod implements Serializable {
    public final hydra.util.Opt value;
    
    public AddV (hydra.util.Opt value) {
      java.util.Objects.requireNonNull((value));
      this.value = value;
    }
    
    @Override
    public boolean equals(Object other) {
      if (!(other instanceof AddV)) {
        return false;
      }
      AddV o = (AddV) (other);
      return value.equals(o.value);
    }
    
    @Override
    public int hashCode() {
      return 2 * value.hashCode();
    }
    
    @Override
    public  R accept(Visitor visitor) {
      return visitor.visit(this);
    }
  }
  
  public static final class E extends hydra.ext.org.apache.tinkerpop.gremlin.TraversalSourceSpawnMethod implements Serializable {
    public final java.util.List value;
    
    public E (java.util.List value) {
      java.util.Objects.requireNonNull((value));
      this.value = value;
    }
    
    @Override
    public boolean equals(Object other) {
      if (!(other instanceof E)) {
        return false;
      }
      E o = (E) (other);
      return value.equals(o.value);
    }
    
    @Override
    public int hashCode() {
      return 2 * value.hashCode();
    }
    
    @Override
    public  R accept(Visitor visitor) {
      return visitor.visit(this);
    }
  }
  
  public static final class V extends hydra.ext.org.apache.tinkerpop.gremlin.TraversalSourceSpawnMethod implements Serializable {
    public final java.util.List value;
    
    public V (java.util.List value) {
      java.util.Objects.requireNonNull((value));
      this.value = value;
    }
    
    @Override
    public boolean equals(Object other) {
      if (!(other instanceof V)) {
        return false;
      }
      V o = (V) (other);
      return value.equals(o.value);
    }
    
    @Override
    public int hashCode() {
      return 2 * value.hashCode();
    }
    
    @Override
    public  R accept(Visitor visitor) {
      return visitor.visit(this);
    }
  }
  
  public static final class MergeV extends hydra.ext.org.apache.tinkerpop.gremlin.TraversalSourceSpawnMethod implements Serializable {
    public final hydra.ext.org.apache.tinkerpop.gremlin.GenericLiteralMapNullableArgumentOrNestedTraversal value;
    
    public MergeV (hydra.ext.org.apache.tinkerpop.gremlin.GenericLiteralMapNullableArgumentOrNestedTraversal value) {
      java.util.Objects.requireNonNull((value));
      this.value = value;
    }
    
    @Override
    public boolean equals(Object other) {
      if (!(other instanceof MergeV)) {
        return false;
      }
      MergeV o = (MergeV) (other);
      return value.equals(o.value);
    }
    
    @Override
    public int hashCode() {
      return 2 * value.hashCode();
    }
    
    @Override
    public  R accept(Visitor visitor) {
      return visitor.visit(this);
    }
  }
  
  public static final class MergeE extends hydra.ext.org.apache.tinkerpop.gremlin.TraversalSourceSpawnMethod implements Serializable {
    public final hydra.ext.org.apache.tinkerpop.gremlin.GenericLiteralMapNullableArgumentOrNestedTraversal value;
    
    public MergeE (hydra.ext.org.apache.tinkerpop.gremlin.GenericLiteralMapNullableArgumentOrNestedTraversal value) {
      java.util.Objects.requireNonNull((value));
      this.value = value;
    }
    
    @Override
    public boolean equals(Object other) {
      if (!(other instanceof MergeE)) {
        return false;
      }
      MergeE o = (MergeE) (other);
      return value.equals(o.value);
    }
    
    @Override
    public int hashCode() {
      return 2 * value.hashCode();
    }
    
    @Override
    public  R accept(Visitor visitor) {
      return visitor.visit(this);
    }
  }
  
  public static final class Inject extends hydra.ext.org.apache.tinkerpop.gremlin.TraversalSourceSpawnMethod implements Serializable {
    public final java.util.List value;
    
    public Inject (java.util.List value) {
      java.util.Objects.requireNonNull((value));
      this.value = value;
    }
    
    @Override
    public boolean equals(Object other) {
      if (!(other instanceof Inject)) {
        return false;
      }
      Inject o = (Inject) (other);
      return value.equals(o.value);
    }
    
    @Override
    public int hashCode() {
      return 2 * value.hashCode();
    }
    
    @Override
    public  R accept(Visitor visitor) {
      return visitor.visit(this);
    }
  }
  
  public static final class Io extends hydra.ext.org.apache.tinkerpop.gremlin.TraversalSourceSpawnMethod implements Serializable {
    public final hydra.ext.org.apache.tinkerpop.gremlin.StringArgument value;
    
    public Io (hydra.ext.org.apache.tinkerpop.gremlin.StringArgument value) {
      java.util.Objects.requireNonNull((value));
      this.value = value;
    }
    
    @Override
    public boolean equals(Object other) {
      if (!(other instanceof Io)) {
        return false;
      }
      Io o = (Io) (other);
      return value.equals(o.value);
    }
    
    @Override
    public int hashCode() {
      return 2 * value.hashCode();
    }
    
    @Override
    public  R accept(Visitor visitor) {
      return visitor.visit(this);
    }
  }
  
  public static final class Call extends hydra.ext.org.apache.tinkerpop.gremlin.TraversalSourceSpawnMethod implements Serializable {
    public final hydra.util.Opt value;
    
    public Call (hydra.util.Opt value) {
      java.util.Objects.requireNonNull((value));
      this.value = value;
    }
    
    @Override
    public boolean equals(Object other) {
      if (!(other instanceof Call)) {
        return false;
      }
      Call o = (Call) (other);
      return value.equals(o.value);
    }
    
    @Override
    public int hashCode() {
      return 2 * value.hashCode();
    }
    
    @Override
    public  R accept(Visitor visitor) {
      return visitor.visit(this);
    }
  }
  
  public static final class Union extends hydra.ext.org.apache.tinkerpop.gremlin.TraversalSourceSpawnMethod implements Serializable {
    public final java.util.List value;
    
    public Union (java.util.List value) {
      java.util.Objects.requireNonNull((value));
      this.value = value;
    }
    
    @Override
    public boolean equals(Object other) {
      if (!(other instanceof Union)) {
        return false;
      }
      Union o = (Union) (other);
      return value.equals(o.value);
    }
    
    @Override
    public int hashCode() {
      return 2 * value.hashCode();
    }
    
    @Override
    public  R accept(Visitor visitor) {
      return visitor.visit(this);
    }
  }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy