forked from JavaTX/JavaCompilerCore
Neuer Versuch StringLiteral
This commit is contained in:
parent
5da4ed534d
commit
8da8eb7d28
@ -2,6 +2,7 @@
|
|||||||
package de.dhbwstuttgart.syntaxtree.statement;
|
package de.dhbwstuttgart.syntaxtree.statement;
|
||||||
import de.dhbwstuttgart.typeinference.Menge;
|
import de.dhbwstuttgart.typeinference.Menge;
|
||||||
|
|
||||||
|
|
||||||
// ino.end
|
// ino.end
|
||||||
// ino.module.StringLiteral.8653.import
|
// ino.module.StringLiteral.8653.import
|
||||||
import java.util.Hashtable;
|
import java.util.Hashtable;
|
||||||
@ -107,15 +108,15 @@ public class StringLiteral extends Literal
|
|||||||
|
|
||||||
@Override
|
@Override
|
||||||
public InstructionList genByteCode(ClassGen cg) {
|
public InstructionList genByteCode(ClassGen cg) {
|
||||||
InstructionList il = new InstructionList();
|
|
||||||
|
|
||||||
InstructionFactory _factory = new InstructionFactory(cg, cg.getConstantPool());
|
InstructionFactory _factory = new InstructionFactory(cg, cg.getConstantPool());
|
||||||
|
InstructionList il = new InstructionList();
|
||||||
|
|
||||||
il.append(_factory.ASTORE_1, _factory.createNew(string));
|
il.append(_factory.ASTORE_1, _factory.createNew(string));
|
||||||
|
|
||||||
|
|
||||||
return il;
|
return il;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
// ino.end
|
// ino.end
|
||||||
|
Loading…
Reference in New Issue
Block a user