2013-10-18 11:33:46 +00:00
|
|
|
// ino.module.PositivExpr.8645.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.PositivExpr.8645.import
|
|
|
|
import java.util.Hashtable;
|
|
|
|
import java.util.Vector;
|
2014-02-09 15:07:31 +00:00
|
|
|
|
2013-10-18 11:33:46 +00:00
|
|
|
|
2014-10-09 10:01:16 +00:00
|
|
|
import de.dhbwstuttgart.logger.Logger;
|
2014-09-04 14:35:44 +00:00
|
|
|
import de.dhbwstuttgart.bytecode.ClassFile;
|
|
|
|
import de.dhbwstuttgart.bytecode.CodeAttribute;
|
|
|
|
import de.dhbwstuttgart.myexception.CTypeReconstructionException;
|
|
|
|
import de.dhbwstuttgart.myexception.JVMCodeException;
|
2014-09-02 08:33:54 +00:00
|
|
|
import de.dhbwstuttgart.syntaxtree.Class;
|
2014-09-04 14:35:44 +00:00
|
|
|
import de.dhbwstuttgart.syntaxtree.SyntaxTreeNode;
|
2014-09-02 08:33:54 +00:00
|
|
|
import de.dhbwstuttgart.syntaxtree.type.GenericTypeVar;
|
|
|
|
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;
|
2014-09-05 09:49:31 +00:00
|
|
|
import de.dhbwstuttgart.typeinference.unify.CSubstitutionSet;
|
2013-10-18 11:33:46 +00:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// ino.class.PositivExpr.25947.declaration
|
|
|
|
public class PositivExpr extends UnaryExpr
|
|
|
|
// ino.end
|
|
|
|
// ino.class.PositivExpr.25947.body
|
|
|
|
{
|
|
|
|
// ino.method.PositivExpr.25951.definition
|
|
|
|
public PositivExpr(int offset,int variableLength)
|
|
|
|
// ino.end
|
|
|
|
// ino.method.PositivExpr.25951.body
|
|
|
|
{
|
|
|
|
super(offset,variableLength);
|
|
|
|
}
|
|
|
|
// ino.end
|
|
|
|
// ino.attribute.plus.25954.declaration
|
|
|
|
protected UnaryPlus plus;
|
|
|
|
// ino.end
|
|
|
|
// ino.attribute.expr.25957.declaration
|
|
|
|
public Expr expr;
|
|
|
|
// ino.end
|
|
|
|
// ino.attribute.parserlog.25960.declaration
|
|
|
|
protected static Logger parserlog = Logger.getLogger("parser");
|
|
|
|
// ino.end
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// ino.method.set_UnaryPlus.25963.definition
|
|
|
|
public void set_UnaryPlus(UnaryPlus up)
|
|
|
|
// ino.end
|
|
|
|
// ino.method.set_UnaryPlus.25963.body
|
|
|
|
{
|
|
|
|
this.plus = up;
|
|
|
|
}
|
|
|
|
// ino.end
|
|
|
|
|
|
|
|
// ino.method.set_Expr.25966.definition
|
|
|
|
public void set_Expr(Expr ex)
|
|
|
|
// ino.end
|
|
|
|
// ino.method.set_Expr.25966.body
|
|
|
|
{
|
|
|
|
this.expr = ex;
|
|
|
|
}
|
|
|
|
// ino.end
|
|
|
|
|
|
|
|
// ino.method.get_Name.25969.definition
|
|
|
|
public String get_Name()
|
|
|
|
// ino.end
|
|
|
|
// ino.method.get_Name.25969.body
|
|
|
|
{
|
|
|
|
return null;
|
|
|
|
}
|
|
|
|
// ino.end
|
|
|
|
|
|
|
|
// ino.method.sc_check.25972.definition
|
|
|
|
public void sc_check(Vector<Class> classname, Hashtable ch, Hashtable<String, String> bh, boolean ext, Hashtable parach, Hashtable<String, Hashtable> parabh)
|
|
|
|
// ino.end
|
|
|
|
// ino.method.sc_check.25972.body
|
|
|
|
{
|
|
|
|
if(ext)
|
|
|
|
parserlog.debug(" ---PositivExpr---");
|
|
|
|
//Wartet noch auf Implementierung
|
|
|
|
}
|
|
|
|
// ino.end
|
|
|
|
|
|
|
|
// ino.method.codegen.25975.definition
|
|
|
|
public void codegen(ClassFile classfile, CodeAttribute code, Vector paralist)
|
|
|
|
throws JVMCodeException
|
|
|
|
// ino.end
|
|
|
|
// ino.method.codegen.25975.body
|
|
|
|
{}
|
|
|
|
// ino.end
|
|
|
|
|
|
|
|
// ino.method.wandleRefTypeAttributes2GenericAttributes.25984.definition
|
|
|
|
public void wandleRefTypeAttributes2GenericAttributes(Vector<Type> paralist, Vector<GenericTypeVar> genericMethodParameters)
|
|
|
|
// ino.end
|
|
|
|
// ino.method.wandleRefTypeAttributes2GenericAttributes.25984.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;
|
|
|
|
}
|
|
|
|
|
2014-03-27 15:43:07 +00:00
|
|
|
@Override
|
|
|
|
public Vector<SyntaxTreeNode> getChildren() {
|
|
|
|
Vector<SyntaxTreeNode> ret = new Vector<SyntaxTreeNode>();
|
|
|
|
ret.add(this.expr);
|
|
|
|
return ret;
|
|
|
|
}
|
|
|
|
|
2013-10-18 11:33:46 +00:00
|
|
|
}
|
|
|
|
// ino.end
|