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 org.apache.bcel.generic.ClassGen;
|
||||
import org.apache.bcel.generic.InstructionList;
|
||||
|
||||
import de.dhbwstuttgart.typeinference.Menge;
|
||||
import de.dhbwstuttgart.logger.Logger;
|
||||
@ -172,7 +173,10 @@ public class Assign extends Expr
|
||||
|
||||
|
||||
@Override
|
||||
public void genByteCode(ClassGen _cg) {
|
||||
public InstructionList genByteCode(ClassGen _cg) {
|
||||
|
||||
|
||||
return null;
|
||||
// TODO Auto-generated method stub
|
||||
|
||||
}
|
||||
|
@ -98,6 +98,7 @@ public class Null extends Literal
|
||||
InstructionList il = new InstructionList();
|
||||
|
||||
il.append(_factory.ACONST_NULL);
|
||||
|
||||
|
||||
return il;
|
||||
}
|
||||
|
@ -138,8 +138,9 @@ public class Return extends Statement
|
||||
|
||||
InstructionFactory _factory = new InstructionFactory(cg, cg.getConstantPool());
|
||||
|
||||
//Stimmt das VOID hier eigentlich?
|
||||
il.append(_factory.createReturn(org.apache.bcel.generic.Type.VOID));
|
||||
//TO BE DONE
|
||||
|
||||
|
||||
return il;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user