2015-06-16 17:44:45 +02:00

127 lines
3.4 KiB
Java
Executable File

// ino.module.InstanceOf.8633.package
package de.dhbwstuttgart.syntaxtree.statement;
// ino.end
// ino.module.InstanceOf.8633.import
import java.util.Enumeration;
import java.util.Hashtable;
import org.apache.bcel.generic.ClassGen;
import de.dhbwstuttgart.typeinference.Menge;
import de.dhbwstuttgart.logger.Logger;
import de.dhbwstuttgart.myexception.CTypeReconstructionException;
import de.dhbwstuttgart.myexception.JVMCodeException;
import de.dhbwstuttgart.myexception.SCStatementException;
import de.dhbwstuttgart.syntaxtree.Class;
import de.dhbwstuttgart.syntaxtree.SyntaxTreeNode;
import de.dhbwstuttgart.syntaxtree.type.GenericTypeVar;
import de.dhbwstuttgart.syntaxtree.type.RefType;
import de.dhbwstuttgart.syntaxtree.type.Type;
import de.dhbwstuttgart.typeinference.ConstraintsSet;
import de.dhbwstuttgart.typeinference.JavaCodeResult;
import de.dhbwstuttgart.typeinference.ResultSet;
import de.dhbwstuttgart.typeinference.assumptions.TypeAssumptions;
// ino.class.InstanceOf.25352.declaration
public class InstanceOf extends BinaryExpr
// ino.end
// ino.class.InstanceOf.25352.body
{
// ino.attribute.expr.25356.declaration
public Expr expr;
// ino.end
// ino.attribute.reftype.25359.declaration
private RefType reftype;
// ino.end
// ino.attribute.parserlog.25362.decldescription type=line
// private boolean is_instance = false;
// ino.end
// ino.attribute.parserlog.25362.declaration
protected static Logger parserlog = Logger.getLogger("parser");
// ino.end
// ino.method.InstanceOf.25365.definition
public InstanceOf(int offset,int variableLength)
// ino.end
// ino.method.InstanceOf.25365.body
{
super(offset,variableLength);
// #JB# 20.04.2005
// ###########################################################
this.setType(new RefType("Boolean",this,this.getOffset()));
//this.setType(new Type("boolean"));
// ###########################################################
}
// ino.end
// ino.method.set_Expr.25368.definition
public void set_Expr(Expr exp)
// ino.end
// ino.method.set_Expr.25368.body
{
this.expr = exp;
}
// ino.end
// ino.method.set_Type.25371.definition
public void set_Type(RefType typ)
// ino.end
// ino.method.set_Type.25371.body
{
this.reftype = typ;
}
// ino.end
// ino.method.get_Name.25377.definition
public String get_Name()
// ino.end
// ino.method.get_Name.25377.body
{
return null;
}
// ino.end
// ino.method.wandleRefTypeAttributes2GenericAttributes.25389.definition
public void wandleRefTypeAttributes2GenericAttributes(Menge<Type> paralist, Menge<GenericTypeVar> genericMethodParameters)
// ino.end
// ino.method.wandleRefTypeAttributes2GenericAttributes.25389.body
{
}
// ino.end
@Override
public ConstraintsSet TYPEExpr(TypeAssumptions assumptions) {
// TODO Auto-generated method stub
return null;
}
@Override
public JavaCodeResult printJavaCode(ResultSet resultSet) {
// TODO Auto-generated method stub
return null;
}
@Override
public Menge<SyntaxTreeNode> getChildren() {
Menge<SyntaxTreeNode> ret = new Menge<SyntaxTreeNode>();
ret.add(this.expr);
return ret;
}
@Override
public void genByteCode(ClassGen _cg) {
// TODO Auto-generated method stub
}
}
// ino.end