-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: support native abstract classes
- Loading branch information
Showing
17 changed files
with
342 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
11 changes: 11 additions & 0 deletions
11
...ylle/javafixture/testobjects/abstractclasses/AbstractClassWithAbstractImplementation.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
package com.github.nylle.javafixture.testobjects.abstractclasses; | ||
|
||
import com.github.nylle.javafixture.testobjects.TestObject; | ||
|
||
public abstract class AbstractClassWithAbstractImplementation { | ||
int publicField = 1; | ||
|
||
abstract TestObject getTestObject(); | ||
|
||
abstract void setTestDto(TestObject value); | ||
} |
10 changes: 10 additions & 0 deletions
10
.../javafixture/testobjects/abstractclasses/AbstractClassWithAbstractImplementationImpl.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
package com.github.nylle.javafixture.testobjects.abstractclasses; | ||
|
||
import com.github.nylle.javafixture.testobjects.TestObject; | ||
|
||
public abstract class AbstractClassWithAbstractImplementationImpl extends AbstractClassWithAbstractImplementation { | ||
|
||
abstract TestObject getTestObject(); | ||
|
||
abstract void setTestDto(TestObject value); | ||
} |
6 changes: 6 additions & 0 deletions
6
...nylle/javafixture/testobjects/abstractclasses/AbstractClassWithGenericImplementation.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
package com.github.nylle.javafixture.testobjects.abstractclasses; | ||
|
||
public abstract class AbstractClassWithGenericImplementation { | ||
|
||
abstract String getString(); | ||
} |
15 changes: 15 additions & 0 deletions
15
...e/javafixture/testobjects/abstractclasses/AbstractClassWithGenericImplementationImpl.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
package com.github.nylle.javafixture.testobjects.abstractclasses; | ||
|
||
public class AbstractClassWithGenericImplementationImpl<T> extends AbstractClassWithGenericImplementation { | ||
private T t; | ||
private String string; | ||
|
||
@Override | ||
public String getString() { | ||
return string; | ||
} | ||
|
||
public T getT() { | ||
return t; | ||
} | ||
} |
11 changes: 11 additions & 0 deletions
11
...github/nylle/javafixture/testobjects/abstractclasses/AbstractClassWithImplementation.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
package com.github.nylle.javafixture.testobjects.abstractclasses; | ||
|
||
import com.github.nylle.javafixture.testobjects.TestObject; | ||
|
||
public abstract class AbstractClassWithImplementation { | ||
int publicField = 1; | ||
|
||
abstract TestObject getTestObject(); | ||
|
||
abstract void setTestDto(TestObject value); | ||
} |
15 changes: 15 additions & 0 deletions
15
...ub/nylle/javafixture/testobjects/abstractclasses/AbstractClassWithImplementationImpl.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
package com.github.nylle.javafixture.testobjects.abstractclasses; | ||
|
||
import com.github.nylle.javafixture.testobjects.TestObject; | ||
|
||
public class AbstractClassWithImplementationImpl extends AbstractClassWithImplementation { | ||
@Override | ||
public TestObject getTestObject() { | ||
return null; | ||
} | ||
|
||
@Override | ||
public void setTestDto(TestObject value) { | ||
|
||
} | ||
} |
11 changes: 11 additions & 0 deletions
11
...hub/nylle/javafixture/testobjects/abstractclasses/AbstractClassWithoutImplementation.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
package com.github.nylle.javafixture.testobjects.abstractclasses; | ||
|
||
import com.github.nylle.javafixture.testobjects.TestObject; | ||
|
||
public abstract class AbstractClassWithoutImplementation { | ||
int publicField = 1; | ||
|
||
abstract TestObject getTestObject(); | ||
|
||
abstract void setTestDto(TestObject value); | ||
} |
11 changes: 11 additions & 0 deletions
11
...fixture/testobjects/abstractclasses/GenericAbstractClassTUWithGenericImplementationT.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
package com.github.nylle.javafixture.testobjects.abstractclasses; | ||
|
||
public abstract class GenericAbstractClassTUWithGenericImplementationT<T, U> { | ||
int publicField = 1; | ||
|
||
abstract T getT(); | ||
|
||
abstract void setT(T value); | ||
|
||
abstract U getU(); | ||
} |
21 changes: 21 additions & 0 deletions
21
...ure/testobjects/abstractclasses/GenericAbstractClassTUWithGenericImplementationTImpl.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
package com.github.nylle.javafixture.testobjects.abstractclasses; | ||
|
||
public class GenericAbstractClassTUWithGenericImplementationTImpl<T> extends GenericAbstractClassTUWithGenericImplementationT<T, String> { | ||
private T t; | ||
private String u; | ||
|
||
@Override | ||
public T getT() { | ||
return t; | ||
} | ||
|
||
@Override | ||
public void setT(T value) { | ||
t = value; | ||
} | ||
|
||
@Override | ||
public String getU() { | ||
return u; | ||
} | ||
} |
11 changes: 11 additions & 0 deletions
11
...ixture/testobjects/abstractclasses/GenericAbstractClassTUWithGenericImplementationTU.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
package com.github.nylle.javafixture.testobjects.abstractclasses; | ||
|
||
public abstract class GenericAbstractClassTUWithGenericImplementationTU<T, U> { | ||
int publicField = 1; | ||
|
||
abstract T getT(); | ||
|
||
abstract void setT(T value); | ||
|
||
abstract U getU(); | ||
} |
21 changes: 21 additions & 0 deletions
21
...re/testobjects/abstractclasses/GenericAbstractClassTUWithGenericImplementationTUImpl.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
package com.github.nylle.javafixture.testobjects.abstractclasses; | ||
|
||
public class GenericAbstractClassTUWithGenericImplementationTUImpl<T, U> extends GenericAbstractClassTUWithGenericImplementationTU<T, U> { | ||
private T t; | ||
private U u; | ||
|
||
@Override | ||
public T getT() { | ||
return t; | ||
} | ||
|
||
@Override | ||
public void setT(T value) { | ||
t = value; | ||
} | ||
|
||
@Override | ||
public U getU() { | ||
return u; | ||
} | ||
} |
11 changes: 11 additions & 0 deletions
11
...fixture/testobjects/abstractclasses/GenericAbstractClassTUWithGenericImplementationU.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
package com.github.nylle.javafixture.testobjects.abstractclasses; | ||
|
||
public abstract class GenericAbstractClassTUWithGenericImplementationU<T, U> { | ||
int publicField = 1; | ||
|
||
abstract T getT(); | ||
|
||
abstract void setT(T value); | ||
|
||
abstract U getU(); | ||
} |
21 changes: 21 additions & 0 deletions
21
...ure/testobjects/abstractclasses/GenericAbstractClassTUWithGenericImplementationUImpl.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
package com.github.nylle.javafixture.testobjects.abstractclasses; | ||
|
||
public class GenericAbstractClassTUWithGenericImplementationUImpl<U> extends GenericAbstractClassTUWithGenericImplementationU<String, U> { | ||
private String t; | ||
private U u; | ||
|
||
@Override | ||
public String getT() { | ||
return t; | ||
} | ||
|
||
@Override | ||
public void setT(String value) { | ||
t = value; | ||
} | ||
|
||
@Override | ||
public U getU() { | ||
return u; | ||
} | ||
} |
11 changes: 11 additions & 0 deletions
11
...nylle/javafixture/testobjects/abstractclasses/GenericAbstractClassWithImplementation.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
package com.github.nylle.javafixture.testobjects.abstractclasses; | ||
|
||
public abstract class GenericAbstractClassWithImplementation<T, U> { | ||
int publicField = 1; | ||
|
||
abstract T getT(); | ||
|
||
abstract void setT(T value); | ||
|
||
abstract U getU(); | ||
} |
Oops, something went wrong.