2013-10-18 11:33:46 +00:00
|
|
|
// ino.module.UnaryMinus.8656.package
|
2014-09-02 08:33:54 +00:00
|
|
|
package de.dhbwstuttgart.syntaxtree.statement;
|
2013-10-18 11:33:46 +00:00
|
|
|
// ino.end
|
|
|
|
|
|
|
|
// ino.module.UnaryMinus.8656.import
|
2014-09-04 14:35:44 +00:00
|
|
|
import de.dhbwstuttgart.bytecode.ClassFile;
|
|
|
|
import de.dhbwstuttgart.bytecode.CodeAttribute;
|
|
|
|
import de.dhbwstuttgart.bytecode.JVMCode;
|
|
|
|
import de.dhbwstuttgart.myexception.JVMCodeException;
|
2013-10-18 11:33:46 +00:00
|
|
|
|
|
|
|
// ino.class.UnaryMinus.26308.declaration
|
|
|
|
public class UnaryMinus
|
|
|
|
// ino.end
|
|
|
|
// ino.class.UnaryMinus.26308.body
|
|
|
|
{
|
|
|
|
// ino.method.codegen.26311.definition
|
|
|
|
public void codegen(ClassFile classfile, CodeAttribute code, String type, boolean neg)
|
|
|
|
throws JVMCodeException
|
|
|
|
// ino.end
|
|
|
|
// ino.method.codegen.26311.body
|
|
|
|
{
|
|
|
|
if(!neg) code.add_code(JVMCode.nneg(type));
|
|
|
|
}
|
|
|
|
// ino.end
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
// ino.end
|