Codota Logo
AptUtils.getValuesFromAnnotationValue
Code IndexAdd Codota to your IDE (free)

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

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

  • Add the Codota plugin to your IDE and get smart completions
private void myMethod () {
Charset c =
  • Codota IconString charsetName;Charset.forName(charsetName)
  • Codota IconCharset.defaultCharset()
  • Codota IconContentType contentType;contentType.getCharset()
  • Smart code suggestions by Codota
}
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: yahoo/squidb

List<AnnotationMirror> interfaceSpecs = utils.getValuesFromAnnotationValue(value,
    AnnotationMirror.class);
    List<DeclaredTypeName> typeArgs = utils.getTypeNamesFromAnnotationValue(interfaceTypeArgsValue);
    if (AptUtils.isEmpty(typeArgs)) {
      List<String> typeArgNames = utils.getValuesFromAnnotationValue(
          utils.getAnnotationValueFromMirror(spec, "interfaceTypeArgNames"), String.class);
      for (String typeArgName : typeArgNames) {
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);
}
origin: com.yahoo.squidb/squidb-processor

List<AnnotationMirror> interfaceSpecs = utils.getValuesFromAnnotationValue(value,
    AnnotationMirror.class);
    List<DeclaredTypeName> typeArgs = utils.getTypeNamesFromAnnotationValue(interfaceTypeArgsValue);
    if (AptUtils.isEmpty(typeArgs)) {
      List<String> typeArgNames = utils.getValuesFromAnnotationValue(
          utils.getAnnotationValueFromMirror(spec, "interfaceTypeArgNames"), String.class);
      for (String typeArgName : typeArgNames) {
com.yahoo.aptutils.utilsAptUtilsgetValuesFromAnnotationValue

Popular methods of AptUtils

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

Popular in Java

  • Running tasks concurrently on multiple threads
  • addToBackStack (FragmentTransaction)
  • getExternalFilesDir (Context)
  • getResourceAsStream (ClassLoader)
    Returns a stream for the resource with the specified name. See #getResource(String) for a descriptio
  • HashMap (java.util)
    HashMap is an implementation of Map. All optional operations are supported.All elements are permitte
  • LinkedList (java.util)
    Doubly-linked list implementation of the List and Dequeinterfaces. Implements all optional list oper
  • JCheckBox (javax.swing)
  • BasicDataSource (org.apache.commons.dbcp)
    Basic implementation of javax.sql.DataSource that is configured via JavaBeans properties. This is no
  • Logger (org.apache.log4j)
    This is the central class in the log4j package. Most logging operations, except configuration, are d
  • LoggerFactory (org.slf4j)
    The LoggerFactory is a utility class producing Loggers for various logging APIs, most notably for lo
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