congrats Icon
New! Announcing Tabnine Chat Beta
Learn More
Tabnine Logo
AnnotationsJarWriter
Code IndexAdd Tabnine to your IDE (free)

How to use
AnnotationsJarWriter
in
me.seeber.gradle.ide.eclipse.annotations

Best Java code snippets using me.seeber.gradle.ide.eclipse.annotations.AnnotationsJarWriter (Showing top 6 results out of 315)

origin: me.seeber.gradle/gradle-project-config

/**
 * Append a type signature
 *
 * @param buf Buffer to append to
 * @param role Role (class or super)
 * @param type Type to append signature of
 * @param annotatedSignatureWriter Signature writer
 * @return <code>true</code> if any nullability information was written
 * @throws IOException if we stumble and fall...
 */
protected boolean appendTypeSignature(StringBuilder buf, String role, Generic type,
    MethodSignatureWriter annotatedSignatureWriter) throws IOException {
  boolean annotated = false;
  buf.append(role).append(' ').append(type.asErasure().getInternalName()).append("\n");
  TypeList.Generic typeVariables = type.asErasure().getTypeVariables();
  if (!typeVariables.isEmpty()) {
    if (appendTypeParameters(buf, typeVariables, annotatedSignatureWriter)) {
      annotated = true;
    }
  }
  return annotated;
}
origin: me.seeber.gradle/gradle-project-config

StringBuilder buf = new StringBuilder();
boolean annotated = appendTypeSignature(buf, "class", type.asGenericType(), annotatedSignatureWriter);
    if (appendTypeSignature(buf, "super", superClass, annotatedSignatureWriter)) {
      annotated = true;
    if (appendTypeSignature(buf, "super", interfaceType, annotatedSignatureWriter)) {
      annotated = true;
origin: me.seeber.gradle/gradle-project-config

boolean annotated = false;
try (AnnotationsJarWriter writer = new AnnotationsJarWriter(annotationJarFile, AnnotationNullability.jsr305());
    JarReader reader = new JarReader(jarFile, classLoader)) {
  List<TypeDescription> types = new ArrayList<>(reader.getTypes().values());
      boolean typeAnnotated = writer.write(type, e -> {
        if (knownErrors.add(e.getMessage())) {
          getLogger().info(e.getMessage());
origin: gradle.plugin.me.seeber.gradle/gradle-project-config

boolean annotated = false;
try (AnnotationsJarWriter writer = new AnnotationsJarWriter(annotationJarFile, AnnotationNullability.jsr305());
    JarReader reader = new JarReader(jarFile, classLoader)) {
  List<TypeDescription> types = new ArrayList<>(reader.getTypes().values());
      boolean typeAnnotated = writer.write(type, e -> {
        if (knownErrors.add(e.getMessage())) {
          getLogger().info(e.getMessage());
origin: gradle.plugin.me.seeber.gradle/gradle-project-config

/**
 * Append a type signature
 *
 * @param buf Buffer to append to
 * @param role Role (class or super)
 * @param type Type to append signature of
 * @param annotatedSignatureWriter Signature writer
 * @return <code>true</code> if any nullability information was written
 * @throws IOException if we stumble and fall...
 */
protected boolean appendTypeSignature(StringBuilder buf, String role, Generic type,
    MethodSignatureWriter annotatedSignatureWriter) throws IOException {
  boolean annotated = false;
  buf.append(role).append(' ').append(type.asErasure().getInternalName()).append("\n");
  TypeList.Generic typeVariables = type.asErasure().getTypeVariables();
  if (!typeVariables.isEmpty()) {
    if (appendTypeParameters(buf, typeVariables, annotatedSignatureWriter)) {
      annotated = true;
    }
  }
  return annotated;
}
origin: gradle.plugin.me.seeber.gradle/gradle-project-config

StringBuilder buf = new StringBuilder();
boolean annotated = appendTypeSignature(buf, "class", type.asGenericType(), annotatedSignatureWriter);
    if (appendTypeSignature(buf, "super", superClass, annotatedSignatureWriter)) {
      annotated = true;
    if (appendTypeSignature(buf, "super", interfaceType, annotatedSignatureWriter)) {
      annotated = true;
me.seeber.gradle.ide.eclipse.annotationsAnnotationsJarWriter

Javadoc

Writer for Eclipse external annotations JARs

Most used methods

  • <init>
    Create a new JAR writer
  • appendTypeParameters
    Append type parameters
  • appendTypeSignature
    Append a type signature
  • write
    Write a type description

Popular in Java

  • Making http requests using okhttp
  • onCreateOptionsMenu (Activity)
  • setContentView (Activity)
  • getResourceAsStream (ClassLoader)
  • FlowLayout (java.awt)
    A flow layout arranges components in a left-to-right flow, much like lines of text in a paragraph. F
  • HttpURLConnection (java.net)
    An URLConnection for HTTP (RFC 2616 [http://tools.ietf.org/html/rfc2616]) used to send and receive d
  • SocketTimeoutException (java.net)
    This exception is thrown when a timeout expired on a socket read or accept operation.
  • UnknownHostException (java.net)
    Thrown when a hostname can not be resolved.
  • TreeSet (java.util)
    TreeSet is an implementation of SortedSet. All optional operations (adding and removing) are support
  • ServletException (javax.servlet)
    Defines a general exception a servlet can throw when it encounters difficulty.
  • Top Sublime Text plugins
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