samplegenerators.Generator_Genie Maven / Gradle / Ivy
package samplegenerators;
import static org.immutables.generator.Intrinsics.*;
@java.lang.SuppressWarnings("all")
public class Generator_Genie extends samplegenerators.Genie {
org.immutables.generator.Templates.Invokable name() { return name; }
private final org.immutables.generator.Templates.Invokable name = new FragmentDispatch(1, 0);
void _t0__name(org.immutables.generator.Templates.Invokation __) {
__.dl();final java.lang.String param = __.param(0).toString();
__.ln();
__.out(" some text ").ln();
__.out(" ");
{final org.immutables.generator.Templates.Iteration _it1 = new org.immutables.generator.Templates.Iteration();
for (final java.lang.Character a : $in(param.toCharArray())) {
if ($if($(not, a.hashCode()))) {
final java.lang.Integer b = $cast(param.length());
for (final java.lang.Character c : $in(param.toCharArray())) {
__.dl();__.ln();
__.out(" ");
__.dl();
if ($if($(not, b))) {
__.dl();__.ln();
__.out(" ");
} else if ($if(param.length())) {
__.dl();__.ln();
__.out(" ");
final org.immutables.generator.Templates.Invokable cd = new org.immutables.generator.Templates.Fragment(0) {
@Override public void run(org.immutables.generator.Templates.Invokation __) {
__.dl();final org.immutables.generator.Templates.Invokable cd = this;
__.ln();
__.out(" WW");
$(__, cd);
$(__, b);
__.out("WW");
$(__, _it1.index);
$(__, c);
__.ln();
__.out(" ");
__.dl();
if ($if(_it1.first)) {
__.dl();$(__, cd);
}
__.dl();__.ln();
__.out(" ");
__.dl();
}};__.dl();__.ln();
__.out(" ");
} else if ($if(param)) {
__.dl();__.ln();
__.out(" ");
$(__, param.length());
__.ln();
__.out(" ");
} else {
__.dl();__.ln();
__.out(" ");
}
__.dl();__.ln();
__.out(" ");
__.dl();_it1.index++;
_it1.first = false;
}}}}
__.dl();__.ln();
__.out(" ").ln();
__.out(" ");
__.dl();__.ln();
__.out(" other text ");
$(__, param);
__.ln();
__.out(" ");
final org.immutables.generator.Templates.Invokable our = new org.immutables.generator.Templates.Fragment(1) {
@Override public void run(org.immutables.generator.Templates.Invokation __) {
__.dl();final org.immutables.generator.Templates.Invokable our = this;
final java.lang.Integer s = $cast(__.param(0));
__.ln();
__.out(" ");
$(__, s.hashCode());
$(__, param.length());
__.ln();
__.out(" ");
__.dl();
}};__.dl();__.ln();
__.out(" ").ln();
__.out(" ");
$(__, surname, new org.immutables.generator.Templates.Fragment(0) {
@Override public void run(org.immutables.generator.Templates.Invokation __) {
__.dl();__.ln();
__.out(" xx").ln();
__.out(" ");
__.dl();
}});
__.ln();
__.dl();
};
org.immutables.generator.Templates.Invokable surname() { return surname; }
private final org.immutables.generator.Templates.Invokable surname = new FragmentDispatch(0, 1);
void _t1__surname(org.immutables.generator.Templates.Invokation __) {
__.dl();__.ln();
__.out(" ");
$(__, name, toString());
__.ln();
__.dl();
};
private class FragmentDispatch extends org.immutables.generator.Templates.Fragment{
private final int index;
FragmentDispatch(int arity, int index){
super(arity);
this.index = index;
}
@Override public void run(org.immutables.generator.Templates.Invokation invokation){
switch (index){
case 0: _t0__name(invokation); break;
case 1: _t1__surname(invokation); break;
default: break;
}}}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy