2013-10-18 11:33:46 +00:00
|
|
|
|
// ino.module.ExprStmt.8631.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.ExprStmt.8631.import
|
|
|
|
|
import java.util.Iterator;
|
|
|
|
|
import java.util.Vector;
|
2014-09-02 08:33:54 +00:00
|
|
|
|
|
2013-10-18 11:33:46 +00:00
|
|
|
|
import mycompiler.mytypereconstruction.CSupportData;
|
|
|
|
|
import mycompiler.mytypereconstruction.CTriple;
|
|
|
|
|
import mycompiler.mytypereconstruction.replacementlistener.CReplaceTypeEvent;
|
|
|
|
|
import mycompiler.mytypereconstruction.replacementlistener.ITypeReplacementListener;
|
|
|
|
|
import mycompiler.mytypereconstruction.set.CSubstitutionSet;
|
|
|
|
|
import mycompiler.mytypereconstruction.set.CTripleSet;
|
2014-09-02 08:33:54 +00:00
|
|
|
|
|
2013-10-18 11:33:46 +00:00
|
|
|
|
import org.apache.log4j.Logger;
|
|
|
|
|
// ino.end
|
|
|
|
|
|
2014-09-02 08:33:54 +00:00
|
|
|
|
|
2014-09-02 09:07:16 +00:00
|
|
|
|
|
2014-09-02 08:33:54 +00:00
|
|
|
|
import de.dhbwstuttgart.core.MyCompiler;
|
|
|
|
|
import de.dhbwstuttgart.syntaxtree.type.Pair;
|
|
|
|
|
import de.dhbwstuttgart.syntaxtree.type.Type;
|
|
|
|
|
import de.dhbwstuttgart.syntaxtree.type.TypePlaceholder;
|
2014-09-02 09:07:16 +00:00
|
|
|
|
import de.dhbwstuttgart.typeinference.unify.Unify;
|
2014-09-02 08:33:54 +00:00
|
|
|
|
|
2013-10-18 11:33:46 +00:00
|
|
|
|
// ino.class.ExprStmt.25265.declaration
|
|
|
|
|
public abstract class ExprStmt extends Statement implements ITypeReplacementListener
|
|
|
|
|
// ino.end
|
|
|
|
|
// ino.class.ExprStmt.25265.body
|
|
|
|
|
{
|
|
|
|
|
// ino.method.ExprStmt.25270.definition
|
|
|
|
|
public ExprStmt(int offset, int variableLength)
|
|
|
|
|
// ino.end
|
|
|
|
|
// ino.method.ExprStmt.25270.body
|
|
|
|
|
{
|
|
|
|
|
super(offset,variableLength);
|
|
|
|
|
}
|
|
|
|
|
// ino.end
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// ino.attribute.type.25273.declaration
|
|
|
|
|
//protected Type type; // Type type;
|
|
|
|
|
// ino.end
|
|
|
|
|
// ino.attribute.inferencelog.25276.declaration
|
|
|
|
|
protected static Logger inferencelog = Logger.getLogger("inference");
|
|
|
|
|
// ino.end
|
|
|
|
|
|
|
|
|
|
// ino.method.getTypeName.25279.definition
|
|
|
|
|
public String getTypeName()
|
|
|
|
|
// ino.end
|
|
|
|
|
// ino.method.getTypeName.25279.body
|
|
|
|
|
{
|
2014-02-11 15:30:38 +00:00
|
|
|
|
if (getType()!=null)
|
2014-09-02 16:49:19 +00:00
|
|
|
|
return getType().getName().toString();
|
2013-10-18 11:33:46 +00:00
|
|
|
|
else
|
|
|
|
|
return null;
|
|
|
|
|
}
|
|
|
|
|
// ino.end
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// ino.method.getTypeLineNumber.25291.defdescription type=javadoc
|
|
|
|
|
/**
|
|
|
|
|
* <br>Author: J<EFBFBD>rg B<EFBFBD>uerle
|
|
|
|
|
* @return
|
|
|
|
|
*/
|
|
|
|
|
// ino.end
|
|
|
|
|
// ino.method.getTypeLineNumber.25291.definition
|
|
|
|
|
public int getTypeLineNumber()
|
|
|
|
|
// ino.end
|
|
|
|
|
// ino.method.getTypeLineNumber.25291.body
|
|
|
|
|
{
|
|
|
|
|
return MyCompiler.NO_LINENUMBER;
|
|
|
|
|
}
|
|
|
|
|
// ino.end
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
// ino.end
|