JavaPatternMatching/src/mycompiler/mystatement/UnaryMinus.java
2013-10-18 13:33:46 +02:00

31 lines
741 B
Java
Executable File

// ino.module.UnaryMinus.8656.package
package mycompiler.mystatement;
// ino.end
// ino.module.UnaryMinus.8656.import
import mycompiler.mybytecode.ClassFile;
import mycompiler.mybytecode.CodeAttribute;
import mycompiler.mybytecode.JVMCode;
import mycompiler.myexception.JVMCodeException;
// ino.end
// 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