Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings
This repository was archived by the owner on Feb 26, 2023. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
123 commits
Select commit Hold shift + click to select a range
3b33792
Define new architecture
Jun 4, 2013
71db357
Implement EBeanHandler
yDelouis May 22, 2013
8c359bf
Implement EActivityHandler
Jun 4, 2013
f1b3eb5
Implement EApplicationHandler
yDelouis May 23, 2013
03620f9
Implement EFragmentHandler
yDelouis May 23, 2013
b57cd25
Implement EProviderHandler
yDelouis May 23, 2013
033807b
Implement EReceiverHandler
yDelouis May 23, 2013
02d42a6
Implement EServiceHandler
yDelouis May 23, 2013
a7f2993
Implement EViewHandler
yDelouis May 23, 2013
4caf816
Implement EViewGroupHandler
yDelouis May 23, 2013
b685ed4
Implement AfterInjectHandler
yDelouis May 23, 2013
b7fa477
Implement SharedPrefHandler
yDelouis May 23, 2013
0fdf190
Implement RoboGuiceHandler
yDelouis May 29, 2013
20d6da4
Implement PrefHandler
yDelouis May 29, 2013
ba5d5e3
Implement ViewByIdHandler
yDelouis May 29, 2013
84c38e1
Implement FragmentByIdHandler
yDelouis May 29, 2013
18a35ba
Implement FragmentByTagHandler
yDelouis May 30, 2013
d7126a3
Implement FromHtmlHandler
yDelouis May 30, 2013
6e7d28a
Implement ClickHandler
yDelouis May 30, 2013
9d0a9eb
Implement LongClickHandler
yDelouis May 30, 2013
3f0f7e1
Implement TouchHandler
yDelouis May 30, 2013
7fd8a68
Implement FocusChangeHandler
yDelouis May 30, 2013
c3f8031
Implement CheckedChangeHandler
yDelouis May 30, 2013
90f9474
Implement ItemClickHandler
yDelouis May 30, 2013
0ff7b93
Implement ItemSelectHandler
yDelouis May 30, 2013
a37c6b2
Implement ItemLongClickHandler
yDelouis May 30, 2013
29c0e84
Implement ResHandler
yDelouis May 31, 2013
18aaf83
Implement TransactionalHandler
yDelouis May 31, 2013
ffb7bd1
Implement ExtraHandler
yDelouis May 31, 2013
ec481d7
Implement FragmentArgHandler
yDelouis May 31, 2013
b822da4
Implement SystemServiceHandler
yDelouis May 31, 2013
26ac5e8
Implement InstanceStateHandler
Jun 2, 2013
a49f68c
Implement RestHandler
yDelouis Jun 3, 2013
2c20fec
Implement RestMethodHandler (abstract)
yDelouis Jun 3, 2013
6667c42
Implement GetHandler
yDelouis Jun 3, 2013
be221e6
Implement PostHandler
yDelouis Jun 3, 2013
d6a646e
Implement PutHandler
yDelouis Jun 3, 2013
1ca9dcc
Implement DeleteHandler
yDelouis Jun 3, 2013
75513cc
Implement HeadHandler
yDelouis Jun 3, 2013
1cad379
Implement OptionsHandler
yDelouis Jun 3, 2013
d8af1f4
Implement AppHandler
yDelouis Jun 3, 2013
459dee7
Implement OptionsMenuHandler
yDelouis Jun 3, 2013
665f185
Implement OptionsMenuItemHandler
yDelouis Jun 3, 2013
fb11534
Implement OptionsItemHandler
yDelouis Jun 3, 2013
663b944
Implement NoTitleHandler
Jun 3, 2013
7b5f76a
Implement CustomTitleHandler
Jun 4, 2013
2c02824
Implement FullscreenHandler
Jun 4, 2013
6061fff
Implement RestServiceHandler
Jun 4, 2013
908c44b
Implement OrmLiteDaoHandler
yDelouis Jun 5, 2013
f38accd
Implement RootContextHandler
yDelouis Jun 5, 2013
7dd74db
Implement NonConfigurationInstanceHandler
yDelouis Jun 5, 2013
4ec69c9
Implement BeanHandler
yDelouis Jun 5, 2013
d208897
Refactor EComponentHolder with View support
yDelouis Jun 5, 2013
ba173b9
Implement BeforeTextChangeHandler
yDelouis Jun 6, 2013
3c94932
Implement TextChangeHandler
yDelouis Jun 6, 2013
3bf319d
Implement AfterTextChangeHandler
yDelouis Jun 6, 2013
140be6a
Implement SeekBarProgressChangeHandler
yDelouis Jun 6, 2013
d5a7524
Implement SeekBarTouch(Start & Stop)Handler
yDelouis Jun 6, 2013
d9c0250
Implement AfterViewsHandler
yDelouis Jun 6, 2013
10969cd
Implement TraceHandler
yDelouis Jun 6, 2013
f5bb517
Implement SubscribeHandler
yDelouis Jun 6, 2013
219f72b
Implement ProduceHandler
yDelouis Jun 6, 2013
5853e5a
Implement UiThreadHandler
yDelouis Jun 6, 2013
5218a5e
Implement BackgroundHandler
yDelouis Jun 6, 2013
95b7568
Implement HttpsClientHandler
yDelouis Jun 6, 2013
cea95c2
Implement OnActivityResultHandler
yDelouis Jun 6, 2013
13b13bf
Implement HierarchyViewerSupportHandler
yDelouis Jun 6, 2013
5c698d8
Implement WindowFeatureHandler
yDelouis Jun 6, 2013
f214ddd
Remove unused classes and clean
yDelouis Jun 6, 2013
3d0292f
Make onCreate accessible for tests
yDelouis Jun 6, 2013
ae63ccf
Add getInitBody method
yDelouis Jun 6, 2013
91914dd
Remove useless test about no rebinding singleton
yDelouis Jun 6, 2013
bced1c8
Handle bug with byte[] in extras
yDelouis Jun 6, 2013
22fd1b6
Add license
yDelouis Jun 6, 2013
94acf91
Format and organise import with eclipse
yDelouis Jun 10, 2013
5bc3db9
Merge merged PR 609 : specify package of R class
yDelouis Jun 10, 2013
fb4676a
Merge PR 569 : Cancel background tasks
yDelouis Jun 10, 2013
3dc48f2
Merge merged PR 624 : Fix cancel background tasks
yDelouis Jun 10, 2013
3fdc190
Make validation inheritance easier
yDelouis Jun 13, 2013
9931679
Make AnnotationHandler aware of the ProcessHolder
yDelouis Jun 13, 2013
b294662
Merge merged PR 629 : Handle RuntimeExceptionDao
yDelouis Jun 17, 2013
6c8d9df
Merge merged PR 627 : Generic type in @ItemClick
yDelouis Jun 18, 2013
642abb0
Merge merged PR 637 : Trigger annotations
yDelouis Jun 20, 2013
6dc7a83
Fix bad generated code by FullscreenHandler
yDelouis Jul 2, 2013
0414900
Fix missing setContentView in activities
yDelouis Jul 2, 2013
5421392
Merge merged PR 605 and 655 : Check current thread
yDelouis Jul 15, 2013
cdeac84
Merge merged PR 579 : Rest Authentication
yDelouis Jul 15, 2013
3e48a08
Merge merged PR 657 : Update to ADT 22
yDelouis Jul 15, 2013
0376f27
Merge merged PR 654 : Move some API classes
yDelouis Jul 15, 2013
498daa9
Fix non null HttpEntity in Rest requests
yDelouis Jul 15, 2013
4788b47
Merge merged PR 658 : EnhancedRestClient interfaces
yDelouis Jul 16, 2013
bf9eb34
Merge merged PR 677 : Propagate thread exceptions
yDelouis Nov 26, 2013
9d5bf79
Merge merged PR 678 : Warning on null root context
yDelouis Nov 26, 2013
612bb45
Merge merged PR 682 : Propagate thread exceptions
yDelouis Nov 26, 2013
7b4bd09
Merge merged PR 702 : Fix typo
yDelouis Nov 26, 2013
69e9a10
Merge merged PR 694 : Handler in main thread
yDelouis Nov 27, 2013
246c14e
Merge merged PR 680 : Fragment start activity for result
yDelouis Nov 27, 2013
46d3f6b
Merge merged PR 710 : Inject ClipboardManager
yDelouis Nov 27, 2013
367d60a
Merge merged PR 618 : Enhance crash report
yDelouis Dec 2, 2013
96c82d3
Merge merged PR 617 : ResId null pointer
yDelouis Dec 3, 2013
1c95d7e
Merge merged PR 601 : Enhanced IntentService
yDelouis Dec 8, 2013
576e8b6
Merge merged PR 729 : Fix tests
yDelouis Dec 8, 2013
cce0a2c
Add missing licenses
yDelouis Dec 8, 2013
d9ce667
Merge merged PR 733 : Fix extra
yDelouis Dec 9, 2013
034eeaf
Merge merged PR 734 : Check API version
yDelouis Dec 9, 2013
f3c9179
Merge merged PR 735 : Small typo
yDelouis Dec 9, 2013
c5bdca0
Merge merged PR 737 : Fix API properties loading
yDelouis Dec 9, 2013
5ef89f4
Merge merged PR 740 : Fix exception
yDelouis Dec 9, 2013
a53eabc
Merge merged PR 736 : Fix @Touch
yDelouis Dec 9, 2013
b3ca678
Merge branch from deathlord87 : Put and Delete return
yDelouis Dec 9, 2013
534a825
Merge branch from dhleong : Add missing rest authentication
yDelouis Dec 9, 2013
3a774f6
Merge merged PR 763 : Send background exception to UncaughtExceptionH…
yDelouis Dec 9, 2013
90b2e4c
Merge commit 51f31e1 : Fix NPE on version checking
yDelouis Dec 9, 2013
53840c7
Merge merged PR 772 : No fragment on Froyo
yDelouis Dec 9, 2013
fb9d0f5
Merge merged PR 785 : Ignore Internet permission in library
yDelouis Dec 9, 2013
3c1738c
Merge merged PR 786 : HoloEverywhere uses ABS
yDelouis Dec 9, 2013
dd03a8c
Merge merged PR 792 : Singleton circular reference
yDelouis Dec 9, 2013
575b20e
Merge merged PR 800 : Fix ThreadActivityTest
yDelouis Dec 9, 2013
f9056d6
Fix log not done inside runnable for @Background and @UIThread
yDelouis Dec 10, 2013
516cb96
Fix missing return statement in onHandleIntent()
yDelouis Dec 10, 2013
1bed539
Fix bad request entity in rest methods
yDelouis Dec 10, 2013
ea91f41
Fix onStop and onDestroy called twice with RoboGuice
yDelouis Dec 10, 2013
fa7fd13
Add missing licenses
yDelouis Dec 11, 2013
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
import javax.lang.model.element.Element;
import javax.tools.JavaFileObject;

import org.androidannotations.processing.OriginatingElements;
import org.androidannotations.process.OriginatingElements;

public class ApiCodeGenerator {

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
import javax.annotation.processing.Filer;
import javax.annotation.processing.Messager;

import org.androidannotations.processing.ModelProcessor.ProcessResult;
import org.androidannotations.process.ModelProcessor;

import com.sun.codemodel.writer.PrologCodeWriter;

Expand All @@ -36,7 +36,7 @@ public CodeModelGenerator(Filer filer, Messager messager, String aaVersion) {
this.aaVersion = aaVersion;
}

public void generate(ProcessResult processResult) throws IOException {
public void generate(ModelProcessor.ProcessResult processResult) throws IOException {

ApiCodeGenerator apiCodeGenerator = new ApiCodeGenerator(filer);
apiCodeGenerator.writeApiClasses(processResult.apiClassesToGenerate, processResult.originatingElements);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
import javax.tools.Diagnostic.Kind;
import javax.tools.JavaFileObject;

import org.androidannotations.processing.OriginatingElements;
import org.androidannotations.process.OriginatingElements;

import com.sun.codemodel.CodeWriter;
import com.sun.codemodel.JPackage;
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,130 @@
/**
* Copyright (C) 2010-2013 eBusiness Information, Excilys Group
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed To in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
package org.androidannotations.handler;

import com.sun.codemodel.*;
import org.androidannotations.helper.AndroidManifest;
import org.androidannotations.helper.IdAnnotationHelper;
import org.androidannotations.helper.IdValidatorHelper;
import org.androidannotations.holder.EComponentWithViewSupportHolder;
import org.androidannotations.model.AndroidSystemServices;
import org.androidannotations.model.AnnotationElements;
import org.androidannotations.process.IsValid;
import org.androidannotations.rclass.IRClass;

import javax.annotation.processing.ProcessingEnvironment;
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 static com.sun.codemodel.JExpr.*;

public abstract class AbstractListenerHandler extends BaseAnnotationHandler<EComponentWithViewSupportHolder> {

private IdAnnotationHelper helper;
private EComponentWithViewSupportHolder holder;
private String methodName;

public AbstractListenerHandler(Class<?> targetClass, ProcessingEnvironment processingEnvironment) {
super(targetClass, processingEnvironment);
}

public AbstractListenerHandler(String target, ProcessingEnvironment processingEnvironment) {
super(target, processingEnvironment);
}

@Override
public void setAndroidEnvironment(IRClass rClass, AndroidSystemServices androidSystemServices, AndroidManifest androidManifest) {
super.setAndroidEnvironment(rClass, androidSystemServices, androidManifest);
helper = new IdAnnotationHelper(processingEnv, getTarget(), rClass);
}

@Override
public void validate(Element element, AnnotationElements validatedElements, IsValid valid) {
validatorHelper.enclosingElementHasEnhancedViewSupportAnnotation(element, validatedElements, valid);

validatorHelper.resIdsExist(element, IRClass.Res.ID, IdValidatorHelper.FallbackStrategy.USE_ELEMENT_NAME, valid);

validatorHelper.isNotPrivate(element, valid);

validatorHelper.doesntThrowException(element, valid);

validatorHelper.uniqueId(element, validatedElements, valid);
}

@Override
public void process(Element element, EComponentWithViewSupportHolder holder) {
this.holder = holder;
this.methodName = element.getSimpleName().toString();

ExecutableElement executableElement = (ExecutableElement) element;
List<? extends VariableElement> parameters = executableElement.getParameters();
TypeMirror returnType = executableElement.getReturnType();

List<JFieldRef> idsRefs = helper.extractAnnotationFieldRefs(processHolder, element, IRClass.Res.ID, true);

JDefinedClass listenerAnonymousClass = codeModel().anonymousClass(getListenerClass());
JMethod listenerMethod = createListenerMethod(listenerAnonymousClass);
listenerMethod.annotate(Override.class);

JBlock listenerMethodBody = listenerMethod.body();

JExpression activityRef = holder.getGeneratedClass().staticRef("this");
JInvocation call = invoke(activityRef, methodName);

makeCall(listenerMethodBody, call, returnType);

processParameters(listenerMethod, call, parameters);

for (JFieldRef idRef : idsRefs) {
if (idRef != null) {
JBlock block = holder.getOnViewChangedBody().block();

JExpression findViewExpression = holder.findViewById(idRef);
if (!getViewClass().equals(classes().VIEW)) {
findViewExpression = cast(getViewClass(), findViewExpression);
}

JVar view = block.decl(getViewClass(), "view", findViewExpression);
block._if(view.ne(_null()))._then().invoke(view, getSetterName()).arg(_new(listenerAnonymousClass));
}
}
}

protected abstract void makeCall(JBlock listenerMethodBody, JInvocation call, TypeMirror returnType);

protected abstract void processParameters(JMethod listenerMethod, JInvocation call, List<? extends VariableElement> userParameters);

protected abstract JMethod createListenerMethod(JDefinedClass listenerAnonymousClass);

protected abstract String getSetterName();

protected abstract JClass getListenerClass();

protected JType getViewClass() {
return classes().VIEW;
}

protected String getMethodName() {
return methodName;
}

protected final EComponentWithViewSupportHolder getHolder() {
return holder;
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -13,37 +13,24 @@
* License for the specific language governing permissions and limitations under
* the License.
*/
package org.androidannotations.validation;
package org.androidannotations.handler;

import javax.annotation.processing.ProcessingEnvironment;
import javax.lang.model.element.Element;
import javax.lang.model.element.ExecutableElement;

import org.androidannotations.helper.TargetAnnotationHelper;
import org.androidannotations.helper.ValidatorHelper;
import org.androidannotations.holder.EComponentHolder;
import org.androidannotations.model.AnnotationElements;
import org.androidannotations.process.IsValid;

public class RunnableValidator implements ElementValidator {
public abstract class AbstractRunnableHandler extends BaseAnnotationHandler<EComponentHolder> {

private final String annotationName;
private ValidatorHelper validatorHelper;

public RunnableValidator(String annotationName, ProcessingEnvironment processingEnv) {
this.annotationName = annotationName;
TargetAnnotationHelper annotationHelper = new TargetAnnotationHelper(processingEnv, getTarget());
validatorHelper = new ValidatorHelper(annotationHelper);
}

@Override
public String getTarget() {
return annotationName;
public AbstractRunnableHandler(Class<?> targetClass, ProcessingEnvironment processingEnvironment) {
super(targetClass, processingEnvironment);
}

@Override
public boolean validate(Element element, AnnotationElements validatedElements) {

IsValid valid = new IsValid();

public void validate(Element element, AnnotationElements validatedElements, IsValid valid) {
validatorHelper.enclosingElementHasEnhancedComponentAnnotation(element, validatedElements, valid);

ExecutableElement executableElement = (ExecutableElement) element;
Expand All @@ -57,8 +44,5 @@ public boolean validate(Element element, AnnotationElements validatedElements) {
validatorHelper.isNotFinal(element, valid);

validatorHelper.isNotSynchronized(element, valid);

return valid.isValid();
}

}
Original file line number Diff line number Diff line change
@@ -0,0 +1,96 @@
/**
* Copyright (C) 2010-2013 eBusiness Information, Excilys Group
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed To in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
package org.androidannotations.handler;

import java.util.List;

import javax.annotation.processing.ProcessingEnvironment;
import javax.lang.model.element.Element;
import javax.lang.model.element.ExecutableElement;
import javax.lang.model.element.VariableElement;

import org.androidannotations.helper.AndroidManifest;
import org.androidannotations.helper.IdAnnotationHelper;
import org.androidannotations.helper.IdValidatorHelper;
import org.androidannotations.holder.EComponentWithViewSupportHolder;
import org.androidannotations.holder.OnSeekBarChangeListenerHolder;
import org.androidannotations.model.AndroidSystemServices;
import org.androidannotations.model.AnnotationElements;
import org.androidannotations.process.IsValid;
import org.androidannotations.rclass.IRClass;

import com.sun.codemodel.JBlock;
import com.sun.codemodel.JExpression;
import com.sun.codemodel.JFieldRef;
import com.sun.codemodel.JInvocation;
import com.sun.codemodel.JVar;

public abstract class AbstractSeekBarTouchHandler extends BaseAnnotationHandler<EComponentWithViewSupportHolder> {

private IdAnnotationHelper annotationHelper;

public AbstractSeekBarTouchHandler(Class<?> targetClass, ProcessingEnvironment processingEnvironment) {
super(targetClass, processingEnvironment);
}

@Override
public void setAndroidEnvironment(IRClass rClass, AndroidSystemServices androidSystemServices, AndroidManifest androidManifest) {
super.setAndroidEnvironment(rClass, androidSystemServices, androidManifest);
annotationHelper = new IdAnnotationHelper(processingEnv, getTarget(), rClass);
}

@Override
public void validate(Element element, AnnotationElements validatedElements, IsValid valid) {
validatorHelper.enclosingElementHasEnhancedViewSupportAnnotation(element, validatedElements, valid);

validatorHelper.resIdsExist(element, IRClass.Res.ID, IdValidatorHelper.FallbackStrategy.USE_ELEMENT_NAME, valid);

validatorHelper.isNotPrivate(element, valid);

validatorHelper.doesntThrowException(element, valid);

validatorHelper.returnTypeIsVoid((ExecutableElement) element, valid);

validatorHelper.hasSeekBarTouchTrackingMethodParameters((ExecutableElement) element, valid);
}

@Override
public void process(Element element, EComponentWithViewSupportHolder holder) throws Exception {
String methodName = element.getSimpleName().toString();

List<JFieldRef> idsRefs = annotationHelper.extractAnnotationFieldRefs(processHolder, element, IRClass.Res.ID, true);

for (JFieldRef idRef : idsRefs) {
OnSeekBarChangeListenerHolder onSeekBarChangeListenerHolder = holder.getOnSeekBarChangeListenerHolder(idRef);
JBlock methodBody = getMethodBodyToCall(onSeekBarChangeListenerHolder);

JExpression activityRef = holder.getGeneratedClass().staticRef("this");
JInvocation textChangeCall = methodBody.invoke(activityRef, methodName);

ExecutableElement executableElement = (ExecutableElement) element;
List<? extends VariableElement> parameters = executableElement.getParameters();

if (parameters.size() == 1) {
JVar progressParameter = getMethodParamToPass(onSeekBarChangeListenerHolder);
textChangeCall.arg(progressParameter);
}
}
}

protected abstract JBlock getMethodBodyToCall(OnSeekBarChangeListenerHolder onSeekBarChangeListenerHolder);

protected abstract JVar getMethodParamToPass(OnSeekBarChangeListenerHolder onSeekBarChangeListenerHolder);
}
Original file line number Diff line number Diff line change
Expand Up @@ -13,36 +13,25 @@
* License for the specific language governing permissions and limitations under
* the License.
*/
package org.androidannotations.validation;
package org.androidannotations.handler;

import javax.annotation.processing.ProcessingEnvironment;
import javax.lang.model.element.Element;
import javax.lang.model.element.ExecutableElement;

import org.androidannotations.annotations.AfterInject;
import org.androidannotations.helper.TargetAnnotationHelper;
import org.androidannotations.helper.ValidatorHelper;
import org.androidannotations.holder.EComponentHolder;
import org.androidannotations.model.AnnotationElements;
import org.androidannotations.process.IsValid;

public class AfterInjectValidator implements ElementValidator {
public class AfterInjectHandler extends BaseAnnotationHandler<EComponentHolder> {

private ValidatorHelper validatorHelper;

public AfterInjectValidator(ProcessingEnvironment processingEnv) {
TargetAnnotationHelper annotationHelper = new TargetAnnotationHelper(processingEnv, getTarget());
validatorHelper = new ValidatorHelper(annotationHelper);
public AfterInjectHandler(ProcessingEnvironment processingEnvironment) {
super(AfterInject.class, processingEnvironment);
}

@Override
public String getTarget() {
return AfterInject.class.getName();
}

@Override
public boolean validate(Element element, AnnotationElements validatedElements) {

IsValid valid = new IsValid();

public void validate(Element element, AnnotationElements validatedElements, IsValid valid) {
validatorHelper.enclosingElementHasEnhancedComponentAnnotation(element, validatedElements, valid);

ExecutableElement executableElement = (ExecutableElement) element;
Expand All @@ -54,8 +43,11 @@ public boolean validate(Element element, AnnotationElements validatedElements) {
validatorHelper.doesntThrowException(executableElement, valid);

validatorHelper.param.zeroParameter(executableElement, valid);

return valid.isValid();
}

@Override
public void process(Element element, EComponentHolder holder) {
String methodName = element.getSimpleName().toString();
holder.getInitBody().invoke(methodName);
}
}
Loading
Morty Proxy This is a proxified and sanitized view of the page, visit original site.