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

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

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

origin: yahoo/squidb

private void logSingleError(AnnotationValue singleErrorAnnotation) {
  AnnotationMirror singleErrorMirror = (AnnotationMirror) singleErrorAnnotation.getValue();
  TypeMirror errorClass = utils.getTypeMirrorsFromAnnotationValue(
      utils.getAnnotationValueFromMirror(singleErrorMirror, "specClass")).get(0);
  String errorMessage = utils.getValuesFromAnnotationValue(
      utils.getAnnotationValueFromMirror(singleErrorMirror, "message"), String.class).get(0);
  List<String> errorElementValues = utils.getValuesFromAnnotationValue(
      utils.getAnnotationValueFromMirror(singleErrorMirror, "element"), String.class);
  String errorElementName = AptUtils.isEmpty(errorElementValues) ? null : errorElementValues.get(0);
  Element errorElement = findErrorElement(errorClass, errorElementName);
  utils.getMessager().printMessage(Diagnostic.Kind.ERROR, errorMessage, errorElement);
}
origin: com.yahoo.squidb/squidb-processor

private void logSingleError(AnnotationValue singleErrorAnnotation) {
  AnnotationMirror singleErrorMirror = (AnnotationMirror) singleErrorAnnotation.getValue();
  TypeMirror errorClass = utils.getTypeMirrorsFromAnnotationValue(
      utils.getAnnotationValueFromMirror(singleErrorMirror, "specClass")).get(0);
  String errorMessage = utils.getValuesFromAnnotationValue(
      utils.getAnnotationValueFromMirror(singleErrorMirror, "message"), String.class).get(0);
  List<String> errorElementValues = utils.getValuesFromAnnotationValue(
      utils.getAnnotationValueFromMirror(singleErrorMirror, "element"), String.class);
  String errorElementName = AptUtils.isEmpty(errorElementValues) ? null : errorElementValues.get(0);
  Element errorElement = findErrorElement(errorClass, errorElementName);
  utils.getMessager().printMessage(Diagnostic.Kind.ERROR, errorMessage, errorElement);
}
com.yahoo.aptutils.utilsAptUtilsgetTypeMirrorsFromAnnotationValue

Popular methods of AptUtils

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

Popular in Java

  • Creating JSON documents from java classes using gson
  • getApplicationContext (Context)
  • scheduleAtFixedRate (ScheduledExecutorService)
  • getContentResolver (Context)
  • PrintStream (java.io)
    Fake signature of an existing Java class.
  • URL (java.net)
    A Uniform Resource Locator that identifies the location of an Internet resource as specified by RFC
  • HashMap (java.util)
    HashMap is an implementation of Map. All optional operations are supported.All elements are permitte
  • HashSet (java.util)
    HashSet is an implementation of a Set. All optional operations (adding and removing) are supported.
  • ThreadPoolExecutor (java.util.concurrent)
    An ExecutorService that executes each submitted task using one of possibly several pooled threads, n
  • Reference (javax.naming)
  • From CI to AI: The AI layer in your organization
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