List of usage examples for javax.lang.model.element Element equals
@Override
boolean equals(Object obj);
From source file:com.github.pellaton.jazoon2012.JazoonProcessor.java
private void processElement(TypeElement typeElement) { for (AnnotationMirror annotation : typeElement.getAnnotationMirrors()) { Element annotationTypeElement = annotation.getAnnotationType().asElement(); if (annotationTypeElement.equals(this.configurationTypeElement)) { List<? extends Element> enclosedElements = typeElement.getEnclosedElements(); processClass(typeElement, ElementFilter.constructorsIn(enclosedElements)); for (ExecutableElement method : ElementFilter.methodsIn(enclosedElements)) { processMethod(typeElement, method); }/*from w w w.j a va2s . co m*/ } } }
From source file:com.github.pellaton.springconfigvalidation.SpringConfigurationValidationProcessor.java
private void processElement(Element element) { for (AnnotationMirror annotation : element.getAnnotationMirrors()) { Element annotationTypeElement = annotation.getAnnotationType().asElement(); if (annotationTypeElement.equals(this.configurationTypeElement)) { List<? extends Element> enclosedElements = element.getEnclosedElements(); processClass(element, ElementFilter.constructorsIn(enclosedElements)); } else if (annotationTypeElement.equals(this.beanTypeElement)) { processBeanMethod((ExecutableElement) element); }// w ww.j a v a 2s.c o m } }
From source file:com.github.pellaton.springconfigvalidation.SpringConfigurationValidationProcessor.java
private void processAutowiredConstructor(ExecutableElement constructor) { List<? extends AnnotationMirror> annotations = constructor.getAnnotationMirrors(); for (AnnotationMirror annotationMirror : annotations) { Element annotationTypeElement = annotationMirror.getAnnotationType().asElement(); if (annotationTypeElement.equals(this.autowiredTypeElement)) { printMessage(SpringConfigurationMessage.AUTOWIRED_CONSTRUCTOR, constructor, annotationMirror); }/*from w w w . j a v a 2s. c o m*/ } }