Refactoring
This commit is contained in:
parent
df1c19e60d
commit
03080c43cb
@ -3,6 +3,7 @@ import java.util.Hashtable;
|
||||
import java.util.Iterator;
|
||||
|
||||
import de.dhbwstuttgart.parser.antlr.Java8Parser;
|
||||
import org.antlr.v4.runtime.Token;
|
||||
import org.apache.bcel.generic.ClassGen;
|
||||
import org.apache.bcel.generic.InstructionList;
|
||||
|
||||
|
@ -4,12 +4,15 @@ import de.dhbwstuttgart.typeinference.assumptions.TypeInferenceBlockInformation;
|
||||
import de.dhbwstuttgart.typeinference.constraints.ConstraintSet;
|
||||
import de.dhbwstuttgart.typeinference.assumptions.TypeInferenceInformation;
|
||||
import de.dhbwstuttgart.exceptions.NotImplementedException;
|
||||
import org.antlr.v4.runtime.Token;
|
||||
|
||||
|
||||
public class PostIncExpr extends UnaryExpr
|
||||
{
|
||||
final Expression expr;
|
||||
public PostIncExpr(Expression expr) {
|
||||
super(null);
|
||||
this.expr=expr;
|
||||
}
|
||||
|
||||
}
|
||||
|
@ -1,10 +1,10 @@
|
||||
public class TestClass
|
||||
class TestClass
|
||||
{
|
||||
void testMethod()
|
||||
{
|
||||
++i;
|
||||
i++;
|
||||
--i;
|
||||
i--;
|
||||
//++i;
|
||||
//i++;
|
||||
//--i;
|
||||
//i--;
|
||||
}
|
||||
}
|
@ -38,13 +38,19 @@ public class JavaTXCompilerTest extends JavaTXCompiler {
|
||||
//filesToTest.add(new File(rootDirectory+"MethodsEasy.jav"));
|
||||
//filesToTest.add(new File(rootDirectory+"Matrix.jav"));
|
||||
//filesToTest.add(new File(rootDirectory+"Import.jav"));
|
||||
//filesToTest.add(new File(rootDirectory+"BreakTest.jav"));
|
||||
|
||||
filesToTest.add(new File(rootDirectory+"BreakTest.jav"));
|
||||
filesToTest.add(new File(rootDirectory+"WhileTest.jav"));
|
||||
filesToTest.add(new File(rootDirectory+"IfTest.jav"));
|
||||
filesToTest.add(new File(rootDirectory+"AssertTest.jav"));
|
||||
//filesToTest.add(new File(rootDirectory+"PrePostOperationTest.jav"));
|
||||
//filesToTest.add(new File(rootDirectory+"SwitchTest.jav"));
|
||||
filesToTest.add(new File(rootDirectory+"WhileTest.jav"));
|
||||
//filesToTest.add(new File(rootDirectory+"IfTest.jav"));
|
||||
for(File f : filesToTest){
|
||||
SourceFile sf = this.parse(f);
|
||||
System.out.println("-------------------------------------|"+f.getName()+"|----------------------------------------------");
|
||||
System.out.println(ASTPrinter.print(this.sourceFiles.get(sourceFiles.size()-1)));
|
||||
System.out.println("-----------------------------------------------------------------------------------");
|
||||
|
||||
/*
|
||||
for(ResultSet resultSet : this.typeInference()){
|
||||
Set<TypeInsert> result = TypeInsertFactory.createTypeInsertPoints(sf, resultSet);
|
||||
|
Loading…
Reference in New Issue
Block a user