EOorg.EOeolang.EOstring Maven / Gradle / Ivy
/*
* This file was auto-generated by eolang-maven-plugin
* on 2022-07-25T15:16:24.695Z. Don't edit it,
* your changes will be discarded on the next build.
*
* The EO sources were compiled to XMIR on
* 2022-07-25T15:14:48.726238Z 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);
}
}