forked from JavaTX/JavaCompilerCore
modified: ../../../src/main/java/de/dhbwstuttgart/typeinference/assumptions/MethodAssumption.java
modified: ../../../src/main/java/de/dhbwstuttgart/typeinference/typeAlgo/TYPEStmt.java
This commit is contained in:
parent
69bdb4aa5b
commit
9e6b2e9ced
@ -38,6 +38,14 @@ public class MethodAssumption extends Assumption{
|
|||||||
public ClassOrInterface getReceiver(){
|
public ClassOrInterface getReceiver(){
|
||||||
return receiver;
|
return receiver;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public RefTypeOrTPHOrWildcardOrGeneric getReturnType() {
|
||||||
|
return retType;
|
||||||
|
}
|
||||||
|
|
||||||
|
public List<? extends RefTypeOrTPHOrWildcardOrGeneric> getArgTypes(){
|
||||||
|
return params;
|
||||||
|
}
|
||||||
|
|
||||||
public RefTypeOrTPHOrWildcardOrGeneric getReturnType(GenericsResolver resolver) {
|
public RefTypeOrTPHOrWildcardOrGeneric getReturnType(GenericsResolver resolver) {
|
||||||
return resolver.resolve(retType);
|
return resolver.resolve(retType);
|
||||||
|
@ -654,7 +654,7 @@ public class TYPEStmt implements StatementVisitor{
|
|||||||
foMethod.arglist.getArguments().get(i).accept(this);
|
foMethod.arglist.getArguments().get(i).accept(this);
|
||||||
RefTypeOrTPHOrWildcardOrGeneric argType = foMethod.arglist.getArguments().get(i).getType();
|
RefTypeOrTPHOrWildcardOrGeneric argType = foMethod.arglist.getArguments().get(i).getType();
|
||||||
RefTypeOrTPHOrWildcardOrGeneric assType = assumption.getArgTypes(resolver).get(i);
|
RefTypeOrTPHOrWildcardOrGeneric assType = assumption.getArgTypes(resolver).get(i);
|
||||||
ret.add(new Pair(assType, foMethod.argTypes.get(i), PairOperator.EQUALSDOT));
|
ret.add(new Pair(foMethod.argTypes.get(i), assumption.getArgTypes().get(i), PairOperator.EQUALSDOT));
|
||||||
ret.add(new Pair(argType, assType, PairOperator.SMALLERDOT));
|
ret.add(new Pair(argType, assType, PairOperator.SMALLERDOT));
|
||||||
|
|
||||||
//Fuer Bytecodegenerierung PL 2020-03-09 wird derzeit nicht benutzt ANFANG
|
//Fuer Bytecodegenerierung PL 2020-03-09 wird derzeit nicht benutzt ANFANG
|
||||||
|
Loading…
Reference in New Issue
Block a user