Codota Logo
SimpleAnnotationValueVisitor8
Code IndexAdd Codota to your IDE (free)

How to use
SimpleAnnotationValueVisitor8
in
javax.lang.model.util

Best Java code snippets using javax.lang.model.util.SimpleAnnotationValueVisitor8 (Showing top 7 results out of 315)

  • Add the Codota plugin to your IDE and get smart completions
private void myMethod () {
ScheduledThreadPoolExecutor s =
  • Codota Iconnew ScheduledThreadPoolExecutor(corePoolSize)
  • Codota IconThreadFactory threadFactory;new ScheduledThreadPoolExecutor(corePoolSize, threadFactory)
  • Codota IconString str;new ScheduledThreadPoolExecutor(1, new ThreadFactoryBuilder().setNameFormat(str).build())
  • Smart code suggestions by Codota
}
origin: google/error-prone

 @Override
 public Void visitArray(List<? extends AnnotationValue> vals, Void aVoid) {
  vals.stream().forEachOrdered(v -> v.accept(this, null));
  return super.visitArray(vals, aVoid);
 }
},
origin: google/error-prone

@Override
public Void visitString(String s, Void aVoid) {
 suppressions.add(s);
 return super.visitString(s, aVoid);
}
origin: fr.lteconsulting/angular2-gwt

  @Override
  public Void visitArray( List<? extends AnnotationValue> vals, Void p )
  {
    for( AnnotationValue v : vals )
    {
      v.accept( new SimpleAnnotationValueVisitor8<Void, Void>()
      {
        @Override
        public Void visitType( javax.lang.model.type.TypeMirror t, Void p )
        {
          String name = t.toString();
          result.add( name );
          return null;
        };
      }, null );
    }
    return null;
  }
}, null );
origin: ltearno/angular2-gwt

  @Override
  public Void visitArray( List<? extends AnnotationValue> vals, Void p )
  {
    for( AnnotationValue v : vals )
    {
      v.accept( new SimpleAnnotationValueVisitor8<Void, Void>()
      {
        @Override
        public Void visitType( javax.lang.model.type.TypeMirror t, Void p )
        {
          String name = t.toString();
          result.add( name );
          return null;
        };
      }, null );
    }
    return null;
  }
}, null );
origin: eu.toolchain.serializer/tiny-serializer-processor

@Override
public List<AnnotationMirror> visitArray(
 List<? extends AnnotationValue> vals, Void p
) {
 final ImmutableList.Builder<AnnotationMirror> mirrors = ImmutableList.builder();
 for (final AnnotationValue val : vals) {
  mirrors.add(val.accept(new SimpleAnnotationValueVisitor8<AnnotationMirror, Void>() {
   public AnnotationMirror visitAnnotation(
    AnnotationMirror a, Void p
   ) {
    return a;
   }
   ;
   @Override
   protected AnnotationMirror defaultAction(Object o, Void p) {
    throw new IllegalArgumentException(
     String.format("Could not convert %s to AnnotationMirror", annotationValue));
   }
  }, null));
 }
 return mirrors.build();
}
origin: com.google.errorprone/error_prone_check_api

@Override
public Void visitString(String s, Void aVoid) {
 suppressions.add(s);
 return super.visitString(s, aVoid);
}
origin: com.google.errorprone/error_prone_check_api

 @Override
 public Void visitArray(List<? extends AnnotationValue> vals, Void aVoid) {
  vals.stream().forEachOrdered(v -> v.accept(this, null));
  return super.visitArray(vals, aVoid);
 }
},
javax.lang.model.utilSimpleAnnotationValueVisitor8

Javadoc

A simple visitor for annotation values with default behavior appropriate for the SourceVersion#RELEASE_8source version. Visit methods call #defaultAction passing their arguments to defaultAction's corresponding parameters.

Methods in this class may be overridden subject to their general contract. Note that annotating methods in concrete subclasses with java.lang.Override will help ensure that methods are overridden as intended.

WARNING: The AnnotationValueVisitor interface implemented by this class may have methods added to it in the future to accommodate new, currently unknown, language structures added to future versions of the Java™ programming language. Therefore, methods whose names begin with "visit" may be added to this class in the future; to avoid incompatibilities, classes which extend this class should not declare any instance methods with names beginning with "visit".

When such a new visit method is added, the default implementation in this class will be to call the #visitUnknown method. A new simple annotation value visitor class will also be introduced to correspond to the new language level; this visitor will have different default behavior for the visit method in question. When the new visitor is introduced, all or portions of this visitor may be deprecated.

Note that adding a default implementation of a new visit method in a visitor class will occur instead of adding a default method directly in the visitor interface since a Java SE 8 language feature cannot be used to this version of the API since this version is required to be runnable on Java SE 7 implementations. Future versions of the API that are only required to run on Java SE 8 and later may take advantage of default methods in this situation.

Most used methods

  • <init>
    Constructor for concrete subclasses; uses the argument for the default value.
  • visitArray
  • visitString

Popular in Java

  • Updating database using SQL prepared statement
  • getApplicationContext (Context)
  • putExtra (Intent)
  • onRequestPermissionsResult (Fragment)
  • Collections (java.util)
    This class consists exclusively of static methods that operate on or return collections. It contains
  • Properties (java.util)
    The Properties class represents a persistent set of properties. The Properties can be saved to a st
  • Stack (java.util)
    The Stack class represents a last-in-first-out (LIFO) stack of objects. It extends class Vector with
  • Callable (java.util.concurrent)
    A task that returns a result and may throw an exception. Implementors define a single method with no
  • Notification (javax.management)
  • IOUtils (org.apache.commons.io)
    General IO stream manipulation utilities. This class provides static utility methods for input/outpu
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