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

EOorg.EOeolang.EOstring Maven / Gradle / Ivy

There is a newer version: 0.5.0
Show newest version
/*
 * This file was auto-generated by eolang-maven-plugin
 * on 2022-07-15T10:40:26.302Z. Don't edit it,
 * your changes will be discarded on the next build.
 *
 * The EO sources were compiled to XMIR on
 * 2022-07-15T10:39:24.898274Z by the compiler v.0.24.0.
 */

package EOorg.EOeolang;

import org.eolang.*;

//  
//    
//     
//     
//     
//     
//   
//    
//     
//     
//     
//     
//   
//    
//     
//     
//     
//     
//   
//    
//     
//     
//     
//     
//   
//    
//     
//     
//     
//     
//   
// 
@XmirObject(name = "string", oname = "string", source = "/home/r/repo/target/eo/04-pull/org/eolang/string.eo")
public final class EOstring extends PhDefault {
  public EOstring(final Phi sigma) {
    super(sigma);
    this.add("Δ", new AtFree());
    this.add("eq", new AtOnce(new AtComposite(this, rho -> {
      Phi ret = new EOstring$EOeq(rho);
        ret = new PhLocated(ret, 29, 2);
      return ret;
    })));
    this.add("length", new AtOnce(new AtComposite(this, rho -> {
      Phi ret = new EOstring$EOlength(rho);
        ret = new PhLocated(ret, 35, 2);
      return ret;
    })));
    this.add("as-bytes", new AtOnce(new AtComposite(this, rho -> {
      Phi ret = new EOstring$EOas_bytes(rho);
        ret = new PhLocated(ret, 38, 2);
      return ret;
    })));
    this.add("as-hash", new AtOnce(new AtComposite(this, rho -> {
      Phi ret = new EOstring$EOas_hash(rho);
        ret = new PhLocated(ret, 41, 2);
      return ret;
    })));
    this.add("slice", new AtOnce(new AtComposite(this, rho -> {
      Phi ret = new EOstring$EOslice(rho);
        ret = new PhLocated(ret, 46, 2);
      return ret;
    })));
  }
  @Override
  public int hashCode() {
    return this.attr("Δ").get().hashCode();
  }
  @Override
  public boolean equals(final Object obj) {
    return this.attr("Δ").get().equals(obj);
  }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy