forked from JavaTX/JavaCompilerCore
Super-Aufruf implementieren
This commit is contained in:
parent
4fd30850b5
commit
a8a7ad564b
@ -32,7 +32,7 @@ import de.dhbwstuttgart.typeinference.unify.CSubstitutionSet;
|
||||
|
||||
|
||||
|
||||
public class SuperCall extends MethodCall
|
||||
public class SuperCall extends ThisCall
|
||||
{
|
||||
public SuperCall(int offset,int variableLength)
|
||||
{
|
||||
@ -44,29 +44,9 @@ public class SuperCall extends MethodCall
|
||||
this.parent = parent;
|
||||
}
|
||||
|
||||
public ArgumentList arglist;
|
||||
|
||||
public void set_ArgumentList(ArgumentList al)
|
||||
{
|
||||
this.arglist = al;
|
||||
}
|
||||
|
||||
public ArgumentList getArgumentList()
|
||||
{
|
||||
return this.arglist;
|
||||
}
|
||||
|
||||
public void set_UsedId(UsedId ui)
|
||||
{
|
||||
this.usedid = ui;
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
@Override
|
||||
public ConstraintsSet TYPEExpr(TypeAssumptions assumptions) {
|
||||
throw new TypeinferenceException("this(...)-Aufruf kann nicht als Ausdruck verwendet werden",this);
|
||||
throw new TypeinferenceException("super(...)-Aufruf kann nicht als Ausdruck verwendet werden",this);
|
||||
}
|
||||
|
||||
/**
|
||||
@ -103,6 +83,4 @@ public class SuperCall extends MethodCall
|
||||
return new JavaCodeResult("super("+this.getArgumentList().printJavaCode(resultSet)+")");
|
||||
}
|
||||
|
||||
|
||||
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user