From 38698d04fdd58bfef376d72260acbf4e4393a9eb Mon Sep 17 00:00:00 2001 From: JanUlrich Date: Tue, 18 Mar 2014 20:19:13 +0100 Subject: [PATCH] =?UTF-8?q?ConstuctorAssumption=20angef=C3=BCgt?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../assumptions/ConstructorAssumption.java | 14 +++++++++++++ .../exceptions/ParserException.java | 16 +++++++++++++++ .../OverloadingInsertTest.jav | 20 +++++++++++++++++++ 3 files changed, 50 insertions(+) create mode 100644 src/typinferenz/assumptions/ConstructorAssumption.java create mode 100644 src/typinferenz/exceptions/ParserException.java create mode 100644 test/plugindevelopment/OverloadingInsertTest.jav diff --git a/src/typinferenz/assumptions/ConstructorAssumption.java b/src/typinferenz/assumptions/ConstructorAssumption.java new file mode 100644 index 000000000..934af3d8c --- /dev/null +++ b/src/typinferenz/assumptions/ConstructorAssumption.java @@ -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); + } + + +} diff --git a/src/typinferenz/exceptions/ParserException.java b/src/typinferenz/exceptions/ParserException.java new file mode 100644 index 000000000..70102c11f --- /dev/null +++ b/src/typinferenz/exceptions/ParserException.java @@ -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"); + } + +} diff --git a/test/plugindevelopment/OverloadingInsertTest.jav b/test/plugindevelopment/OverloadingInsertTest.jav new file mode 100644 index 000000000..5952fe38d --- /dev/null +++ b/test/plugindevelopment/OverloadingInsertTest.jav @@ -0,0 +1,20 @@ +class OverloadingInsertTest{ + + var; + + overload(){ + return this; + } +} + +class Overloading2{ + var2; + + methode(){ + return var2.overload(); + } + + overload(){ + return this; + } +} \ No newline at end of file