JavaPatternMatching/src/de/dhbwstuttgart/syntaxtree/statement/UnaryMinus.java

31 lines
756 B
Java
Raw Normal View History

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