forked from JavaTX/JavaCompilerCore
58 lines
1.9 KiB
Java
58 lines
1.9 KiB
Java
|
// ino.module.RelOp.8610.package
|
||
|
package mycompiler.myoperator;
|
||
|
// ino.end
|
||
|
|
||
|
// ino.module.RelOp.8610.import
|
||
|
import java.util.Hashtable;
|
||
|
import java.util.Iterator;
|
||
|
import java.util.Vector;
|
||
|
import mycompiler.mybytecode.ClassFile;
|
||
|
import mycompiler.mybytecode.CodeAttribute;
|
||
|
import mycompiler.myexception.CTypeReconstructionException;
|
||
|
import mycompiler.myexception.JVMCodeException;
|
||
|
import mycompiler.mystatement.Binary;
|
||
|
import mycompiler.mytype.Pair;
|
||
|
import mycompiler.mytype.RefType;
|
||
|
import mycompiler.mytypereconstruction.CSupportData;
|
||
|
import mycompiler.mytypereconstruction.CTriple;
|
||
|
import mycompiler.mytypereconstruction.set.CSubstitutionSet;
|
||
|
import mycompiler.mytypereconstruction.set.CTripleSet;
|
||
|
import mycompiler.mytypereconstruction.set.CTypeAssumptionSet;
|
||
|
import mycompiler.mytypereconstruction.unify.Unify;
|
||
|
// ino.end
|
||
|
|
||
|
// ino.class.RelOp.24299.declaration
|
||
|
public abstract class RelOp extends Operator
|
||
|
// ino.end
|
||
|
// ino.class.RelOp.24299.body
|
||
|
{
|
||
|
// ino.method.RelOp.24303.definition
|
||
|
public RelOp(int offset, int variableLength)
|
||
|
// ino.end
|
||
|
// ino.method.RelOp.24303.body
|
||
|
{
|
||
|
super(offset, variableLength);
|
||
|
}
|
||
|
// ino.end
|
||
|
|
||
|
// ino.method.if_codegen.24306.declaration
|
||
|
public abstract void if_codegen(ClassFile classfile, CodeAttribute code, String type, boolean not)
|
||
|
throws JVMCodeException;
|
||
|
// ino.end
|
||
|
|
||
|
|
||
|
protected Hashtable<RefType, RefType> getOperatorTypes() {
|
||
|
Hashtable<RefType, RefType> types = new Hashtable<RefType, RefType>();
|
||
|
|
||
|
types.put(new RefType("java.lang.Integer",-1), new RefType("java.lang.Boolean",-1));
|
||
|
types.put(new RefType("java.lang.Double",-1), new RefType("java.lang.Boolean",-1));
|
||
|
types.put(new RefType("java.lang.Float",-1), new RefType("java.lang.Boolean",-1));
|
||
|
types.put(new RefType("java.lang.Long",-1), new RefType("java.lang.Boolean",-1));
|
||
|
|
||
|
return types;
|
||
|
}
|
||
|
|
||
|
|
||
|
}
|
||
|
// ino.end
|