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

hydra.ext.com.microsoft.kusto.kql.TabularExpression Maven / Gradle / Ivy

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

package hydra.ext.com.microsoft.kusto.kql;

import java.io.Serializable;

public abstract class TabularExpression implements Serializable {
  public static final hydra.core.Name TYPE_NAME = new hydra.core.Name("hydra/ext/com/microsoft/kusto/kql.TabularExpression");
  
  public static final hydra.core.Name FIELD_NAME_COMMAND = new hydra.core.Name("command");
  
  public static final hydra.core.Name FIELD_NAME_PIPELINE = new hydra.core.Name("pipeline");
  
  public static final hydra.core.Name FIELD_NAME_LET = new hydra.core.Name("let");
  
  public static final hydra.core.Name FIELD_NAME_TABLE = new hydra.core.Name("table");
  
  private TabularExpression () {
  
  }
  
  public abstract  R accept(Visitor visitor) ;
  
  public interface Visitor {
    R visit(Command instance) ;
    
    R visit(Pipeline instance) ;
    
    R visit(Let instance) ;
    
    R visit(Table instance) ;
  }
  
  public interface PartialVisitor extends Visitor {
    default R otherwise(TabularExpression instance) {
      throw new IllegalStateException("Non-exhaustive patterns when matching: " + (instance));
    }
    
    default R visit(Command instance) {
      return otherwise((instance));
    }
    
    default R visit(Pipeline instance) {
      return otherwise((instance));
    }
    
    default R visit(Let instance) {
      return otherwise((instance));
    }
    
    default R visit(Table instance) {
      return otherwise((instance));
    }
  }
  
  public static final class Command extends hydra.ext.com.microsoft.kusto.kql.TabularExpression implements Serializable {
    public final hydra.ext.com.microsoft.kusto.kql.Command value;
    
    public Command (hydra.ext.com.microsoft.kusto.kql.Command value) {
      java.util.Objects.requireNonNull((value));
      this.value = value;
    }
    
    @Override
    public boolean equals(Object other) {
      if (!(other instanceof Command)) {
        return false;
      }
      Command o = (Command) (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 Pipeline extends hydra.ext.com.microsoft.kusto.kql.TabularExpression implements Serializable {
    public final hydra.ext.com.microsoft.kusto.kql.PipelineExpression value;
    
    public Pipeline (hydra.ext.com.microsoft.kusto.kql.PipelineExpression value) {
      java.util.Objects.requireNonNull((value));
      this.value = value;
    }
    
    @Override
    public boolean equals(Object other) {
      if (!(other instanceof Pipeline)) {
        return false;
      }
      Pipeline o = (Pipeline) (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 Let extends hydra.ext.com.microsoft.kusto.kql.TabularExpression implements Serializable {
    public final hydra.ext.com.microsoft.kusto.kql.LetExpression value;
    
    public Let (hydra.ext.com.microsoft.kusto.kql.LetExpression value) {
      java.util.Objects.requireNonNull((value));
      this.value = value;
    }
    
    @Override
    public boolean equals(Object other) {
      if (!(other instanceof Let)) {
        return false;
      }
      Let o = (Let) (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 Table extends hydra.ext.com.microsoft.kusto.kql.TabularExpression implements Serializable {
    public final hydra.ext.com.microsoft.kusto.kql.TableName value;
    
    public Table (hydra.ext.com.microsoft.kusto.kql.TableName value) {
      java.util.Objects.requireNonNull((value));
      this.value = value;
    }
    
    @Override
    public boolean equals(Object other) {
      if (!(other instanceof Table)) {
        return false;
      }
      Table o = (Table) (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