forked from JavaTX/JavaCompilerCore
ConstuctorAssumption angefügt
This commit is contained in:
parent
d4b9ea9a73
commit
38698d04fd
14
src/typinferenz/assumptions/ConstructorAssumption.java
Normal file
14
src/typinferenz/assumptions/ConstructorAssumption.java
Normal file
@ -0,0 +1,14 @@
|
|||||||
|
package typinferenz.assumptions;
|
||||||
|
|
||||||
|
import mycompiler.myclass.Class;
|
||||||
|
import mycompiler.myclass.Field;
|
||||||
|
import mycompiler.myclass.Method;
|
||||||
|
|
||||||
|
public class ConstructorAssumption extends MethodAssumption{
|
||||||
|
|
||||||
|
public ConstructorAssumption(Method assumedMethod, Class parentClass) {
|
||||||
|
super(assumedMethod, parentClass);
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
}
|
16
src/typinferenz/exceptions/ParserException.java
Normal file
16
src/typinferenz/exceptions/ParserException.java
Normal file
@ -0,0 +1,16 @@
|
|||||||
|
package typinferenz.exceptions;
|
||||||
|
|
||||||
|
import mycompiler.myparser.JavaParser.yyException;
|
||||||
|
|
||||||
|
|
||||||
|
public class ParserException extends TypinferenzException {
|
||||||
|
|
||||||
|
public ParserException(String message) {
|
||||||
|
super(message);
|
||||||
|
}
|
||||||
|
|
||||||
|
public ParserException(yyException exc){
|
||||||
|
super("Parserfehler");
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
20
test/plugindevelopment/OverloadingInsertTest.jav
Normal file
20
test/plugindevelopment/OverloadingInsertTest.jav
Normal file
@ -0,0 +1,20 @@
|
|||||||
|
class OverloadingInsertTest{
|
||||||
|
|
||||||
|
var;
|
||||||
|
|
||||||
|
overload(){
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
class Overloading2{
|
||||||
|
var2;
|
||||||
|
|
||||||
|
methode(){
|
||||||
|
return var2.overload();
|
||||||
|
}
|
||||||
|
|
||||||
|
overload(){
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
}
|
Loading…
Reference in New Issue
Block a user