Tabnine Logo
AptUtils.getElements
Code IndexAdd Tabnine to your IDE (free)

How to use
getElements
method
in
com.yahoo.aptutils.utils.AptUtils

Best Java code snippets using com.yahoo.aptutils.utils.AptUtils.getElements (Showing top 4 results out of 315)

origin: yahoo/squidb

  /**
   * Helper method that other plugins can use to copy javadocs from an Element
   */
  public static void writeJavadocFromElement(PluginEnvironment pluginEnv, JavaFileWriter writer, Element element)
      throws IOException {
    if (!pluginEnv.hasSquidbOption(PluginEnvironment.OPTIONS_DISABLE_JAVADOC_COPYING)) {
      writer.writeJavadoc(pluginEnv.getUtils().getElements().getDocComment(element));
    }
  }
}
origin: yahoo/squidb

@Override
public void beforeEmitClassDeclaration(JavaFileWriter writer) throws IOException {
  String generatedJavadoc = " This class was generated from the model spec at "
      + "{@link " + modelSpec.getModelSpecName() + "}";
  String elementJavadoc = utils.getElements().getDocComment(modelSpec.getModelSpecElement());
  if (!AptUtils.isEmpty(elementJavadoc)) {
    generatedJavadoc = (generatedJavadoc + "\n <br/>\n" + elementJavadoc);
  }
  writer.writeJavadoc(generatedJavadoc);
  writer.writeComment("Generated code -- do not modify!");
}
origin: com.yahoo.squidb/squidb-processor

  /**
   * Helper method that other plugins can use to copy javadocs from an Element
   */
  public static void writeJavadocFromElement(PluginEnvironment pluginEnv, JavaFileWriter writer, Element element)
      throws IOException {
    if (!pluginEnv.hasSquidbOption(PluginEnvironment.OPTIONS_DISABLE_JAVADOC_COPYING)) {
      writer.writeJavadoc(pluginEnv.getUtils().getElements().getDocComment(element));
    }
  }
}
origin: com.yahoo.squidb/squidb-processor

@Override
public void beforeEmitClassDeclaration(JavaFileWriter writer) throws IOException {
  String generatedJavadoc = " This class was generated from the model spec at "
      + "{@link " + modelSpec.getModelSpecName() + "}";
  String elementJavadoc = utils.getElements().getDocComment(modelSpec.getModelSpecElement());
  if (!AptUtils.isEmpty(elementJavadoc)) {
    generatedJavadoc = (generatedJavadoc + "\n <br/>\n" + elementJavadoc);
  }
  writer.writeJavadoc(generatedJavadoc);
  writer.writeComment("Generated code -- do not modify!");
}
com.yahoo.aptutils.utilsAptUtilsgetElements

Popular methods of AptUtils

  • getMessager
  • isEmpty
  • <init>
  • accumulateImportsFromElements
  • accumulateImportsFromTypeNames
  • getAnnotationValue
  • getAnnotationValueFromMirror
  • getTypeMirrorsFromAnnotationValue
  • getTypeNameFromTypeMirror
  • getTypeNamesFromAnnotationValue
  • getTypes
  • getValuesFromAnnotationValue
  • getTypes,
  • getValuesFromAnnotationValue,
  • methodDeclarationParamsFromExecutableElement,
  • newJavaFileWriter

Popular in Java

  • Running tasks concurrently on multiple threads
  • requestLocationUpdates (LocationManager)
  • putExtra (Intent)
  • notifyDataSetChanged (ArrayAdapter)
  • Timestamp (java.sql)
    A Java representation of the SQL TIMESTAMP type. It provides the capability of representing the SQL
  • List (java.util)
    An ordered collection (also known as a sequence). The user of this interface has precise control ove
  • ZipFile (java.util.zip)
    This class provides random read access to a zip file. You pay more to read the zip file's central di
  • JTextField (javax.swing)
  • Runner (org.openjdk.jmh.runner)
  • Reflections (org.reflections)
    Reflections one-stop-shop objectReflections scans your classpath, indexes the metadata, allows you t
  • Top plugins for Android Studio
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now