forked from JavaTX/JavaCompilerCore
Merge branch 'addPackages' of ssh://gohorb.ba-horb.de/bahome/projekt/git/JavaCompilerCore into addPackages
This commit is contained in:
commit
2e421cccaa
@ -70,7 +70,7 @@ public class ASTFactory {
|
|||||||
}
|
}
|
||||||
|
|
||||||
private static Field createField(java.lang.reflect.Field field, JavaClassName jreClass) {
|
private static Field createField(java.lang.reflect.Field field, JavaClassName jreClass) {
|
||||||
return new Field(field.getName(), createType(field.getType()), field.getModifiers(), new NullToken());
|
return new Field(field.getName(), createType(field.getGenericType()), field.getModifiers(), new NullToken());
|
||||||
}
|
}
|
||||||
|
|
||||||
//private static RefType createType(Class classType) {
|
//private static RefType createType(Class classType) {
|
||||||
|
@ -8,9 +8,9 @@ import de.test.mathStruc;
|
|||||||
import de.test.vectorAdd;
|
import de.test.vectorAdd;
|
||||||
|
|
||||||
|
|
||||||
class mathStrucVector {
|
public class mathStrucVector {
|
||||||
|
|
||||||
main() {
|
public main() {
|
||||||
Vector<Integer> v1 = new Vector<Integer>();
|
Vector<Integer> v1 = new Vector<Integer>();
|
||||||
v1.addElement(2);
|
v1.addElement(2);
|
||||||
v1.addElement(2);
|
v1.addElement(2);
|
||||||
@ -25,9 +25,9 @@ class mathStrucVector {
|
|||||||
var ms2;
|
var ms2;
|
||||||
ms2 = new mathStruc<>(v2);
|
ms2 = new mathStruc<>(v2);
|
||||||
var ms3;
|
var ms3;
|
||||||
/*
|
|
||||||
ms3 = ms.innerOp.apply(va.add).apply(ms2);
|
ms3 = ms.innerOp.apply(va.add).apply(ms2);
|
||||||
return ms3;
|
return ms3;
|
||||||
*/
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -5,7 +5,7 @@ import java.lang.Integer;
|
|||||||
import java.lang.Boolean;
|
import java.lang.Boolean;
|
||||||
|
|
||||||
|
|
||||||
class vectorAdd {
|
public class vectorAdd {
|
||||||
|
|
||||||
public add = (v1, v2) -> {
|
public add = (v1, v2) -> {
|
||||||
var ret = new Vector<Integer>();
|
var ret = new Vector<Integer>();
|
||||||
|
Loading…
Reference in New Issue
Block a user