forked from JavaTX/JavaCompilerCore
Generierung von Generic Klasse auskommentiert
This commit is contained in:
parent
50dda3041f
commit
bafffe26ad
@ -1038,20 +1038,20 @@ public class Class extends GTVDeclarationContext implements AClassOrInterface, I
|
|||||||
//Super Klasse
|
//Super Klasse
|
||||||
String name = getType().getCombinedType(_cg);
|
String name = getType().getCombinedType(_cg);
|
||||||
|
|
||||||
Class superClass = new Class("java/util/Vector",-1);
|
//Class superClass = new Class("java/util/Vector",-1);
|
||||||
Type superClassType = superClass.getType();
|
//Type superClassType = superClass.getType();
|
||||||
|
|
||||||
//_cg = new ClassGenerator(name, superClassType, name + ".java", Constants.ACC_PUBLIC , new String[] { }, new TypeinferenceResultSet(null, null, null));
|
//_cg = new ClassGenerator(name, superClassType, name + ".java", Constants.ACC_PUBLIC , new String[] { }, new TypeinferenceResultSet(null, null, null));
|
||||||
|
|
||||||
Class generatedClass = new Class(name, 0);
|
//Class generatedClass = new Class(name, 0);
|
||||||
|
|
||||||
Block konstruktorBlock = new Block();
|
//Block konstruktorBlock = new Block();
|
||||||
konstruktorBlock.statements.add(new SuperCall(konstruktorBlock));
|
//konstruktorBlock.statements.add(new SuperCall(konstruktorBlock));
|
||||||
Constructor standardKonstruktor = new Constructor(Method.createEmptyMethod(konstruktorBlock, name, superClass), superClass);
|
//Constructor standardKonstruktor = new Constructor(Method.createEmptyMethod(konstruktorBlock, name, superClass), superClass);
|
||||||
|
|
||||||
generatedClass.addField(standardKonstruktor);
|
//generatedClass.addField(standardKonstruktor);
|
||||||
|
|
||||||
results.addAll(generatedClass.genByteCode(new TypeinferenceResultSet(generatedClass, new Menge<>(), new ResultSet())));
|
//results.addAll(generatedClass.genByteCode(new TypeinferenceResultSet(generatedClass, new Menge<>(), new ResultSet())));
|
||||||
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
Loading…
Reference in New Issue
Block a user