gerrit_owners.PRED_$dummy_4_src$002Fmain$002Fprolog$002Fgerrit_owners$002Epl_2 Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of gerrit-owners Show documentation
Show all versions of gerrit-owners Show documentation
Gerrit Plugin that provides a Prolog predicate for enabling per directory code review requirements.
The newest version!
package gerrit_owners;
/*
'$dummy_4_src/main/prolog/gerrit_owners.pl'/2 defined in src/main/prolog/gerrit_owners.pl
This file is generated by Prolog Cafe.
PLEASE DO NOT EDIT!
*/
import com.googlecode.prolog_cafe.lang.*;
import com.googlecode.prolog_cafe.builtin.*;
import static gerrit_owners.PRED_$dummy_4_src$002Fmain$002Fprolog$002Fgerrit_owners$002Epl_2.*;
final class PRED_$dummy_4_src$002Fmain$002Fprolog$002Fgerrit_owners$002Epl_2 extends Predicate.P2 {
static final Operation $dummy_4_src$002Fmain$002Fprolog$002Fgerrit_owners$002Epl_2_sub_1 = new PRED_$dummy_4_src$002Fmain$002Fprolog$002Fgerrit_owners$002Epl_2_sub_1();
static final Operation $dummy_4_src$002Fmain$002Fprolog$002Fgerrit_owners$002Epl_2_1 = new PRED_$dummy_4_src$002Fmain$002Fprolog$002Fgerrit_owners$002Epl_2_1();
static final Operation $dummy_4_src$002Fmain$002Fprolog$002Fgerrit_owners$002Epl_2_2 = new PRED_$dummy_4_src$002Fmain$002Fprolog$002Fgerrit_owners$002Epl_2_2();
public PRED_$dummy_4_src$002Fmain$002Fprolog$002Fgerrit_owners$002Epl_2(Term a1, Term a2, Operation cont) {
this.arg1 = a1;
this.arg2 = a2;
this.cont = cont;
}
@Override
public Operation exec(Prolog engine) {
engine.areg1 = arg1;
engine.areg2 = arg2;
engine.cont = cont;
engine.setB0();
return engine.jtry2($dummy_4_src$002Fmain$002Fprolog$002Fgerrit_owners$002Epl_2_1, $dummy_4_src$002Fmain$002Fprolog$002Fgerrit_owners$002Epl_2_sub_1);
}
}
final class PRED_$dummy_4_src$002Fmain$002Fprolog$002Fgerrit_owners$002Epl_2_sub_1 extends Operation {
@Override
public Operation exec(Prolog engine) {
return engine.trust($dummy_4_src$002Fmain$002Fprolog$002Fgerrit_owners$002Epl_2_2);
}
}
final class PRED_$dummy_4_src$002Fmain$002Fprolog$002Fgerrit_owners$002Epl_2_1 extends Operation {
@Override
public Operation exec(Prolog engine) {
// '$dummy_4_src/main/prolog/gerrit_owners.pl'(A,B):-owner_approved(A,B),!,fail
Term a1, a2, a3;
Operation p1, p2;
Operation cont;
a1 = engine.areg1;
a2 = engine.areg2;
cont = engine.cont;
// '$dummy_4_src/main/prolog/gerrit_owners.pl'(A,B):-['$get_level'(C),owner_approved(A,B),'$cut'(C),fail]
a3 = new VariableTerm(engine);
//START inline expansion of $get_level(a(3))
if (! a3.unify(new IntegerTerm(engine.B0), engine.trail)) {
return engine.fail();
}
//END inline expansion
p1 = new PRED_fail_0(cont);
p2 = new PRED_$cut_1(a3, p1);
return new PRED_owner_approved_2(a1, a2, p2);
}
}
final class PRED_$dummy_4_src$002Fmain$002Fprolog$002Fgerrit_owners$002Epl_2_2 extends Operation {
@Override
public Operation exec(Prolog engine) {
// '$dummy_4_src/main/prolog/gerrit_owners.pl'(A,B):-true
Term a1, a2;
Operation cont;
a1 = engine.areg1;
a2 = engine.areg2;
cont = engine.cont;
// '$dummy_4_src/main/prolog/gerrit_owners.pl'(A,B):-[]
return cont;
}
}