Codota Logo
Completion.getValue
Code IndexAdd Codota to your IDE (free)

How to use
getValue
method
in
javax.annotation.processing.Completion

Best Java code snippets using javax.annotation.processing.Completion.getValue (Showing top 5 results out of 315)

  • Common ways to obtain Completion
private void myMethod () {
Completion c =
  • Codota IconString value;String str;new SimpleCompletion(value, str)
  • Codota IconString value;String message;new SimpleCompletion(value, message)
  • Smart code suggestions by Codota
}
origin: org.juzu/juzu-core

 public int compare(Completion o1, Completion o2) {
  return o1.getValue().compareTo(o2.getValue());
 }
};
origin: juzu/juzu

 public int compare(Completion o1, Completion o2) {
  return o1.getValue().compareTo(o2.getValue());
 }
};
origin: org.netbeans.modules/org-netbeans-modules-java-completion

private void addAttributeValues(Env env, Element element, AnnotationMirror annotation, ExecutableElement member) throws IOException {
  CompilationController controller = env.getController();
  TreeUtilities tu = controller.getTreeUtilities();
  ElementUtilities eu = controller.getElementUtilities();
  for (javax.annotation.processing.Completion completion : SourceUtils.getAttributeValueCompletions(controller, element, annotation, member, env.getPrefix())) {
    String value = completion.getValue().trim();
    if (value.length() > 0 && startsWith(env, value)) {
      TypeMirror type = member.getReturnType();
      TypeElement typeElement = null;
      while (type.getKind() == TypeKind.ARRAY) {
        type = ((ArrayType) type).getComponentType();
      }
      if (type.getKind() == TypeKind.DECLARED) {
        CharSequence fqn = ((TypeElement) ((DeclaredType) type).asElement()).getQualifiedName();
        if (JAVA_LANG_CLASS.contentEquals(fqn)) {
          String name = value.endsWith(".class") ? value.substring(0, value.length() - 6) : value; //NOI18N
          TypeMirror tm = tu.parseType(name, eu.outermostTypeElement(element));
          typeElement = tm != null && tm.getKind() == TypeKind.DECLARED ? (TypeElement) ((DeclaredType) tm).asElement() : null;
          if (typeElement != null && startsWith(env, typeElement.getSimpleName().toString())) {
            env.addToExcludes(typeElement);
          }
        }
      }
      results.add(itemFactory.createAttributeValueItem(env.getController(), value, completion.getMessage(), typeElement, anchorOffset, env.getReferencesCount()));
    }
  }
}
origin: juzu/juzu

 @Override
 protected void doProcess(Set<? extends TypeElement> annotations, RoundEnvironment roundEnv) {
  if (count.getAndIncrement() == 0) {
   ElementHandle.Field index = ElementHandle.Field.create("plugin.template.completion.A", "index");
   VariableElement indexElt = index.get(processingEnv);
   AnnotationMirror pathAnn = indexElt.getAnnotationMirrors().get(0);
   TypeElement annotationTypeElement = (TypeElement)pathAnn.getAnnotationType().asElement();
   ExecutableElement value = (ExecutableElement)annotationTypeElement.getEnclosedElements().get(0);
   for (Completion completion : getCompletions(indexElt, pathAnn, value, test[0])) {
    completions.add(completion.getValue());
   }
  }
 }
});
origin: org.juzu/juzu-core

 @Override
 protected void doProcess(Set<? extends TypeElement> annotations, RoundEnvironment roundEnv) {
  if (count.getAndIncrement() == 0) {
   ElementHandle.Field index = ElementHandle.Field.create("plugin.template.completion.A", "index");
   VariableElement indexElt = index.get(processingEnv);
   AnnotationMirror pathAnn = indexElt.getAnnotationMirrors().get(0);
   TypeElement annotationTypeElement = (TypeElement)pathAnn.getAnnotationType().asElement();
   ExecutableElement value = (ExecutableElement)annotationTypeElement.getEnclosedElements().get(0);
   for (Completion completion : getCompletions(indexElt, pathAnn, value, test[0])) {
    completions.add(completion.getValue());
   }
  }
 }
});
javax.annotation.processingCompletiongetValue

Javadoc

Returns the text of the suggested completion.

Popular methods of Completion

  • getMessage
    Returns an informative message about the completion.

Popular in Java

  • Reactive rest calls using spring rest template
  • orElseThrow (Optional)
    Return the contained value, if present, otherwise throw an exception to be created by the provided s
  • getApplicationContext (Context)
  • getSystemService (Context)
  • HttpServer (com.sun.net.httpserver)
    This class implements a simple HTTP server. A HttpServer is bound to an IP address and port number a
  • IOException (java.io)
    Signals that an I/O exception of some sort has occurred. This class is the general class of exceptio
  • SocketTimeoutException (java.net)
    This exception is thrown when a timeout expired on a socket read or accept operation.
  • SortedSet (java.util)
    A Set that further provides a total ordering on its elements. The elements are ordered using their C
  • Executors (java.util.concurrent)
    Factory and utility methods for Executor, ExecutorService, ScheduledExecutorService, ThreadFactory,
  • Logger (org.apache.log4j)
    This is the central class in the log4j package. Most logging operations, except configuration, are d
Codota Logo
  • Products

    Search for Java codeSearch for JavaScript codeEnterprise
  • IDE Plugins

    IntelliJ IDEAWebStormAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogCodota Academy Plugin user guide Terms of usePrivacy policyJava Code IndexJavascript Code Index
Get Codota for your IDE now