Assign.java genByteCode Methode angefügt (noch leer)

This commit is contained in:
Fikus, Evelyn (WWI2012D) 2015-06-22 12:55:21 +02:00
parent 99c719251d
commit d96b36c5d1
3 changed files with 8 additions and 2 deletions

View File

@ -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
}

View File

@ -98,6 +98,7 @@ public class Null extends Literal
InstructionList il = new InstructionList();
il.append(_factory.ACONST_NULL);
return il;
}

View File

@ -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;
}