2014-09-02 08:33:54 +00:00
|
|
|
package de.dhbwstuttgart.syntaxtree.statement;
|
2013-10-18 11:33:46 +00:00
|
|
|
|
|
|
|
|
2017-03-16 19:02:53 +00:00
|
|
|
import de.dhbwstuttgart.typeinference.assumptions.TypeInferenceBlockInformation;
|
|
|
|
import de.dhbwstuttgart.typeinference.constraints.ConstraintSet;
|
2017-03-08 02:43:47 +00:00
|
|
|
import de.dhbwstuttgart.typeinference.assumptions.TypeInferenceInformation;
|
2017-03-06 16:59:01 +00:00
|
|
|
|
|
|
|
public class Receiver extends Expression
|
2013-10-18 11:33:46 +00:00
|
|
|
{
|
2017-03-06 16:59:01 +00:00
|
|
|
private Expression expr;
|
2013-10-18 11:33:46 +00:00
|
|
|
/**
|
2015-05-12 17:49:27 +00:00
|
|
|
* Autor: J�rg B�uerle
|
2013-10-18 11:33:46 +00:00
|
|
|
* @param expr
|
|
|
|
*/
|
2017-03-06 16:59:01 +00:00
|
|
|
public Receiver(Expression expr)
|
2013-10-18 11:33:46 +00:00
|
|
|
{
|
2017-03-06 16:59:01 +00:00
|
|
|
super(expr.getType(), expr.getOffset());
|
2013-10-18 11:33:46 +00:00
|
|
|
this.expr = expr;
|
|
|
|
}
|
2016-10-07 12:12:18 +00:00
|
|
|
|
2017-03-06 16:59:01 +00:00
|
|
|
@Override
|
2017-03-16 19:02:53 +00:00
|
|
|
public ConstraintSet getConstraints(TypeInferenceBlockInformation info) {
|
2017-03-06 16:59:01 +00:00
|
|
|
return expr.getConstraints(info);
|
|
|
|
}
|
2013-10-18 11:33:46 +00:00
|
|
|
}
|