Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
added validation of @Singular Field Type
- Loading branch information
Michail Plushnikov
committed
Jun 20, 2015
1 parent
8f0f5c1
commit 70a8c71
Showing
6 changed files
with
116 additions
and
78 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
18 changes: 18 additions & 0 deletions
18
.../java/de/plushnikov/intellij/plugin/processor/handler/singular/BuilderElementHandler.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,18 @@ | ||
package de.plushnikov.intellij.plugin.processor.handler.singular; | ||
|
||
import com.intellij.psi.PsiAnnotation; | ||
import com.intellij.psi.PsiClass; | ||
import com.intellij.psi.PsiField; | ||
import com.intellij.psi.PsiMethod; | ||
import com.intellij.psi.PsiType; | ||
import com.intellij.psi.PsiVariable; | ||
import de.plushnikov.intellij.plugin.processor.field.AccessorsInfo; | ||
import org.jetbrains.annotations.NotNull; | ||
|
||
import java.util.List; | ||
|
||
public interface BuilderElementHandler { | ||
void addBuilderField(@NotNull List<PsiField> fields, @NotNull PsiVariable psiVariable, @NotNull PsiClass innerClass, @NotNull AccessorsInfo accessorsInfo); | ||
|
||
void addBuilderMethod(@NotNull List<PsiMethod> methods, @NotNull PsiVariable psiVariable, @NotNull PsiClass innerClass, boolean fluentBuilder, PsiType returnType, PsiAnnotation singularAnnotation, @NotNull AccessorsInfo accessorsInfo); | ||
} |
22 changes: 22 additions & 0 deletions
22
.../de/plushnikov/intellij/plugin/processor/handler/singular/EmptyBuilderElementHandler.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,22 @@ | ||
package de.plushnikov.intellij.plugin.processor.handler.singular; | ||
|
||
import com.intellij.psi.PsiAnnotation; | ||
import com.intellij.psi.PsiClass; | ||
import com.intellij.psi.PsiField; | ||
import com.intellij.psi.PsiMethod; | ||
import com.intellij.psi.PsiType; | ||
import com.intellij.psi.PsiVariable; | ||
import de.plushnikov.intellij.plugin.processor.field.AccessorsInfo; | ||
import org.jetbrains.annotations.NotNull; | ||
|
||
import java.util.List; | ||
|
||
public class EmptyBuilderElementHandler implements BuilderElementHandler { | ||
@Override | ||
public void addBuilderField(@NotNull List<PsiField> fields, @NotNull PsiVariable psiVariable, @NotNull PsiClass innerClass, @NotNull AccessorsInfo accessorsInfo) { | ||
} | ||
|
||
@Override | ||
public void addBuilderMethod(@NotNull List<PsiMethod> methods, @NotNull PsiVariable psiVariable, @NotNull PsiClass innerClass, boolean fluentBuilder, PsiType returnType, PsiAnnotation singularAnnotation, @NotNull AccessorsInfo accessorsInfo) { | ||
} | ||
} |
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