@Override public Iterable<? extends Completion> getCompletions(Element element, AnnotationMirror annotation, ExecutableElement member, String userText) { return instance.getCompletions(element, annotation, member, userText); }
@Override public Iterable<? extends Completion> getCompletions(Element element, AnnotationMirror annotation, ExecutableElement member, String userText) { return super.getCompletions(element, annotation, member, userText); } }
@Override public Iterable<? extends Completion> getCompletions(Element element, AnnotationMirror annotation, ExecutableElement member, String userText) { return super.getCompletions(element, annotation, member, userText); } }
@Override public Iterable<? extends Completion> getCompletions(Element element, AnnotationMirror annotation, ExecutableElement member, String userText) { return super.getCompletions(element, annotation, member, userText); } }
@Override public Iterable<? extends Completion> getCompletions(Element element, AnnotationMirror annotationMirror, ExecutableElement executableElement, String s) { return super.getCompletions(element, annotationMirror, executableElement, s); }
@Override public Iterable<? extends Completion> getCompletions(Element element, AnnotationMirror annotation, ExecutableElement member, String userText) { listaAtributos.clear(); final TypeElement classeElement = (TypeElement) element; final JArchValidExclusives anotacao = element.getAnnotation(JArchValidExclusives.class); if (member.getSimpleName().toString().contains("value")) { for (String field : anotacao.attributes()) { listaAtributos.add(new MyCmpl(field)); //Completions.of(field, "Mensagem para" + field)); processingEnv.getMessager().printMessage(Diagnostic.Kind.MANDATORY_WARNING, "JARCH ERROR: Atributo " + field + " não localizado na anotação @JArchValidExclusives da classe " + classeElement.getQualifiedName().toString(), element); } return listaAtributos; } return super.getCompletions(element, annotation, member, userText); }
@Override public Iterable<? extends Completion> getCompletions(Element element, AnnotationMirror annotation, ExecutableElement member, String userText) { final Level l = Level.FINE; LOG.log(l, " element: {0}", element); LOG.log(l, " annotation: {0}", annotation); LOG.log(l, " member: {0}", member); LOG.log(l, " userText: {0}", userText); LOG.log(l, "str: {0}", annotation.getAnnotationType().toString()); if (annotation.getAnnotationType().toString().equals(OnReceive.class.getName())) { if (member.getSimpleName().contentEquals("method")) { return Arrays.asList( methodOf("GET"), methodOf("POST"), methodOf("PUT"), methodOf("DELETE"), methodOf("HEAD"), methodOf("WebSocket") ); } } return super.getCompletions(element, annotation, member, userText); }
@Override public Iterable<? extends Completion> getCompletions(Element element, AnnotationMirror annotation, ExecutableElement member, String userText) { final Level l = Level.FINE; LOG.log(l, " element: {0}", element); LOG.log(l, " annotation: {0}", annotation); LOG.log(l, " member: {0}", member); LOG.log(l, " userText: {0}", userText); LOG.log(l, "str: {0}", annotation.getAnnotationType().toString()); if (annotation.getAnnotationType().toString().equals(OnReceive.class.getName())) { if (member.getSimpleName().contentEquals("method")) { return Arrays.asList( methodOf("GET"), methodOf("POST"), methodOf("PUT"), methodOf("DELETE"), methodOf("HEAD"), methodOf("WebSocket") ); } } return super.getCompletions(element, annotation, member, userText); }