forked from JavaTX/JavaCompilerCore
Assign.java genByteCode Methode angefügt (noch leer)
This commit is contained in:
parent
99c719251d
commit
d96b36c5d1
@ -7,6 +7,7 @@ import java.util.Hashtable;
|
|||||||
import java.util.Iterator;
|
import java.util.Iterator;
|
||||||
|
|
||||||
import org.apache.bcel.generic.ClassGen;
|
import org.apache.bcel.generic.ClassGen;
|
||||||
|
import org.apache.bcel.generic.InstructionList;
|
||||||
|
|
||||||
import de.dhbwstuttgart.typeinference.Menge;
|
import de.dhbwstuttgart.typeinference.Menge;
|
||||||
import de.dhbwstuttgart.logger.Logger;
|
import de.dhbwstuttgart.logger.Logger;
|
||||||
@ -172,7 +173,10 @@ public class Assign extends Expr
|
|||||||
|
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void genByteCode(ClassGen _cg) {
|
public InstructionList genByteCode(ClassGen _cg) {
|
||||||
|
|
||||||
|
|
||||||
|
return null;
|
||||||
// TODO Auto-generated method stub
|
// TODO Auto-generated method stub
|
||||||
|
|
||||||
}
|
}
|
||||||
|
@ -98,6 +98,7 @@ public class Null extends Literal
|
|||||||
InstructionList il = new InstructionList();
|
InstructionList il = new InstructionList();
|
||||||
|
|
||||||
il.append(_factory.ACONST_NULL);
|
il.append(_factory.ACONST_NULL);
|
||||||
|
|
||||||
|
|
||||||
return il;
|
return il;
|
||||||
}
|
}
|
||||||
|
@ -138,8 +138,9 @@ public class Return extends Statement
|
|||||||
|
|
||||||
InstructionFactory _factory = new InstructionFactory(cg, cg.getConstantPool());
|
InstructionFactory _factory = new InstructionFactory(cg, cg.getConstantPool());
|
||||||
|
|
||||||
|
//Stimmt das VOID hier eigentlich?
|
||||||
il.append(_factory.createReturn(org.apache.bcel.generic.Type.VOID));
|
il.append(_factory.createReturn(org.apache.bcel.generic.Type.VOID));
|
||||||
//TO BE DONE
|
|
||||||
|
|
||||||
return il;
|
return il;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user