JavaPatternMatching/resources/syntaxtreegenerator/VectorAdd.ast

31 lines
756 B
Plaintext

class VectorAdd {
VectorAdd(){
super(());
}
TPH EXVJ vectorAdd(TPH EXVK v1, TPH EXVL v2){
TPH EXVM i;
i = 0;
v1 = new java.util.Vector();
TPH EXVP erg;
erg = new java.util.Vector();
while(i op v1.size Signature: [TPH EXVT]()){
erg.addElement Signature: [TPH EXWF, TPH EXWG](v1.elementAt Signature: [TPH EXVW, TPH EXVX](i) op v2.elementAt Signature: [TPH EXWA, TPH EXWB](i));
i++;
};
return erg;
}
TPH EXWN m(TPH EXWO x, TPH EXWP y, TPH EXWQ z){
x = new java.util.Vector();
y = new java.util.Vector();
x.add Signature: [TPH EXWU, TPH EXWV](1);
y.add Signature: [TPH EXWY, TPH EXWZ](2);
return z.addAll Signature: [TPH EXXC, TPH EXXD](x);
}
VectorAdd(){
super(());
}
}