Aufräumen
This commit is contained in:
parent
acf9cbd20b
commit
f92a53ce74
@ -32,11 +32,11 @@ public class ASTFactory {
|
|||||||
names = scope;
|
names = scope;
|
||||||
}
|
}
|
||||||
|
|
||||||
public static Method createEmptyMethod(String withSignature, Class parent) {
|
public Method createEmptyMethod(String withSignature, Class parent) {
|
||||||
return ASTFactory.createMethod(withSignature, new ParameterList(), new Block(), parent);
|
return ASTFactory.createMethod(withSignature, new ParameterList(), new Block(), parent);
|
||||||
}
|
}
|
||||||
|
|
||||||
public static Constructor createEmptyConstructor(Class parent){
|
public Constructor createEmptyConstructor(Class parent){
|
||||||
Block block = new Block();
|
Block block = new Block();
|
||||||
block.setType(new de.dhbwstuttgart.syntaxtree.type.Void(block, 0));
|
block.setType(new de.dhbwstuttgart.syntaxtree.type.Void(block, 0));
|
||||||
block.statements.add(new SuperCall(block));
|
block.statements.add(new SuperCall(block));
|
||||||
|
@ -36,7 +36,7 @@ import de.dhbwstuttgart.typeinference.exceptions.TypeinferenceException;
|
|||||||
public class MethodCall extends Expr
|
public class MethodCall extends Expr
|
||||||
{
|
{
|
||||||
public MethodCall(Receiver receiver, String methodName, ArgumentList argumentList, int offset){
|
public MethodCall(Receiver receiver, String methodName, ArgumentList argumentList, int offset){
|
||||||
this(offset, 0);
|
this(offset);
|
||||||
this.set_Receiver(receiver);
|
this.set_Receiver(receiver);
|
||||||
this.set_Name(methodName);
|
this.set_Name(methodName);
|
||||||
this.set_ArgumentList(argumentList);
|
this.set_ArgumentList(argumentList);
|
||||||
|
@ -50,14 +50,10 @@ public class PostIncExpr extends UnaryExpr
|
|||||||
public String get_Name()
|
public String get_Name()
|
||||||
{
|
{
|
||||||
return null;
|
return null;
|
||||||
}
|
|
||||||
|
|
||||||
public void wandleRefTypeAttributes2GenericAttributes(Menge<Type> paralist, Menge<GenericTypeVar> genericMethodParameters)
|
|
||||||
{
|
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public JavaCodeResult printJavaCode(ResultSet resultSet) {
|
public JavaCodeResult printJavaCode(ResultSet resultSet) {
|
||||||
JavaCodeResult ret = new JavaCodeResult();
|
JavaCodeResult ret = new JavaCodeResult();
|
||||||
ret.attach(this.expr.printJavaCode(resultSet));
|
ret.attach(this.expr.printJavaCode(resultSet));
|
||||||
ret.attach("++");
|
ret.attach("++");
|
||||||
|
Loading…
Reference in New Issue
Block a user