Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #9 from fa4nir/development
Development
- Loading branch information
Showing
27 changed files
with
1,133 additions
and
125 deletions.
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
core/src/main/java/io/github/fa4nir/core/annotations/PayloadPredicate.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 io.github.fa4nir.core.annotations; | ||
|
||
import java.lang.annotation.ElementType; | ||
import java.lang.annotation.Retention; | ||
import java.lang.annotation.RetentionPolicy; | ||
import java.lang.annotation.Target; | ||
|
||
@Target(ElementType.METHOD) | ||
@Retention(RetentionPolicy.RUNTIME) | ||
public @interface PayloadPredicate { | ||
} |
14 changes: 14 additions & 0 deletions
14
core/src/main/java/io/github/fa4nir/core/annotations/ReturnStatement.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,14 @@ | ||
package io.github.fa4nir.core.annotations; | ||
|
||
import java.lang.annotation.ElementType; | ||
import java.lang.annotation.Retention; | ||
import java.lang.annotation.RetentionPolicy; | ||
import java.lang.annotation.Target; | ||
|
||
@Target({ElementType.METHOD, ElementType.TYPE}) | ||
@Retention(RetentionPolicy.RUNTIME) | ||
public @interface ReturnStatement { | ||
|
||
boolean isAlwaysNull() default false; | ||
|
||
} |
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
52 changes: 52 additions & 0 deletions
52
core/src/main/java/io/github/fa4nir/core/definitions/OverridingMethodsDefinition.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,52 @@ | ||
package io.github.fa4nir.core.definitions; | ||
|
||
import io.github.fa4nir.core.annotations.DelegateResultTo; | ||
import io.github.fa4nir.core.annotations.FallBackMethod; | ||
import io.github.fa4nir.core.annotations.NotifyTo; | ||
|
||
import javax.lang.model.element.Element; | ||
import javax.lang.model.element.ExecutableElement; | ||
import javax.lang.model.element.VariableElement; | ||
import javax.lang.model.type.TypeMirror; | ||
import java.util.List; | ||
import java.util.Map; | ||
|
||
public interface OverridingMethodsDefinition { | ||
|
||
ExecutableElement getSourceMethod(); | ||
|
||
Element getTarget(); | ||
|
||
NotifyTo getAnnotationNotifyTo(); | ||
|
||
FallBackMethod getAnnotationFallBackMethod(); | ||
|
||
List<? extends Element> getTargetMethods(); | ||
|
||
List<? extends VariableElement> getSourceParameters(); | ||
|
||
Map<String, ? extends VariableElement> getGroupOfSourceParameters(); | ||
|
||
String getTargetFieldName(); | ||
|
||
ExecutableElement getTargetMethod(); | ||
|
||
String getResultName(); | ||
|
||
DelegateResultTo[] getDelegateResultToAnnotations(); | ||
|
||
ExecutableElement getFallBackMethod(); | ||
|
||
TypeMirror getTargetMethodReturnType(); | ||
|
||
List<? extends VariableElement> getTargetParameters(); | ||
|
||
List<ExecutableElement> getPredicateMethods(); | ||
|
||
String getNotifyToTarget(); | ||
|
||
String getFallBackMethodName(); | ||
|
||
boolean isPredicateMethodsSize(); | ||
|
||
} |
Oops, something went wrong.