org.siebengeisslein.pclass
Class NumericOpCodeGenerator

java.lang.Object
  extended by org.siebengeisslein.pclass.NumericOpCodeGenerator
All Implemented Interfaces:
BinaryOpCodeGenerator

public class NumericOpCodeGenerator
extends java.lang.Object
implements BinaryOpCodeGenerator


Constructor Summary
NumericOpCodeGenerator(int opcode, int branchOpcode, PType operand1, PType operand2)
           
 
Method Summary
 PType getResultType(TypeManager manager)
           
 void visit(org.objectweb.asm.MethodVisitor mv, Frame frame, Expression operand1, Expression operand2, PClass clazz)
           
 void visitBranch(org.objectweb.asm.MethodVisitor mv, Frame frame, Expression operand1, Expression operand2, PClass clazz, org.objectweb.asm.Label label)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

NumericOpCodeGenerator

public NumericOpCodeGenerator(int opcode,
                              int branchOpcode,
                              PType operand1,
                              PType operand2)
Method Detail

visit

public void visit(org.objectweb.asm.MethodVisitor mv,
                  Frame frame,
                  Expression operand1,
                  Expression operand2,
                  PClass clazz)
Specified by:
visit in interface BinaryOpCodeGenerator

getResultType

public PType getResultType(TypeManager manager)
Specified by:
getResultType in interface BinaryOpCodeGenerator

visitBranch

public void visitBranch(org.objectweb.asm.MethodVisitor mv,
                        Frame frame,
                        Expression operand1,
                        Expression operand2,
                        PClass clazz,
                        org.objectweb.asm.Label label)
Specified by:
visitBranch in interface BinaryOpCodeGenerator