EOorg.EOeolang.EOstring Maven / Gradle / Ivy
/*
* This file was auto-generated by eolang-maven-plugin
* on 2022-05-18T09:52:44.497Z. Don't edit it,
* your changes will be discarded on the next build.
*
* The EO sources were compiled to XMIR on
* 2022-05-18T09:51:40.873065Z by the compiler v.0.22.2.
*/
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, 28, 2);
return ret;
})));
this.add("length", new AtOnce(new AtComposite(this, rho -> {
Phi ret = new EOstring$EOlength(rho);
ret = new PhLocated(ret, 34, 2);
return ret;
})));
this.add("trim", new AtOnce(new AtComposite(this, rho -> {
Phi ret = new EOstring$EOtrim(rho);
ret = new PhLocated(ret, 37, 2);
return ret;
})));
this.add("as-int", new AtOnce(new AtComposite(this, rho -> {
Phi ret = new EOstring$EOas_int(rho);
ret = new PhLocated(ret, 40, 2);
return ret;
})));
this.add("as-float", new AtOnce(new AtComposite(this, rho -> {
Phi ret = new EOstring$EOas_float(rho);
ret = new PhLocated(ret, 43, 2);
return ret;
})));
this.add("char-at", new AtOnce(new AtComposite(this, rho -> {
Phi ret = new EOstring$EOchar_at(rho);
ret = new PhLocated(ret, 46, 2);
return ret;
})));
this.add("as-bytes", new AtOnce(new AtComposite(this, rho -> {
Phi ret = new EOstring$EOas_bytes(rho);
ret = new PhLocated(ret, 49, 2);
return ret;
})));
this.add("joined", new AtOnce(new AtComposite(this, rho -> {
Phi ret = new EOstring$EOjoined(rho);
ret = new PhLocated(ret, 53, 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 - 2024 Weber Informatics LLC | Privacy Policy