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

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

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

origin: yahoo/squidb

@SuppressWarnings("unchecked")
private void logErrors(Element element) {
  AnnotationValue errorsArrayValue = utils.getAnnotationValue(element, ModelGenErrors.class, "value");
  List<? extends AnnotationValue> errorsList = (List<? extends AnnotationValue>) errorsArrayValue.getValue();
  for (AnnotationValue error : errorsList) {
    logSingleError(error);
  }
}
origin: yahoo/squidb

if (modelSpecElement.getAnnotation(Implements.class) != null) {
  List<DeclaredTypeName> typeNames = utils.getTypeNamesFromAnnotationValue(
      utils.getAnnotationValue(modelSpecElement, Implements.class, "interfaceClasses"));
  if (!AptUtils.isEmpty(typeNames)) {
    interfaces.addAll(typeNames);
      .getAnnotationValue(modelSpecElement, Implements.class, "interfaceDefinitions");
  List<AnnotationMirror> interfaceSpecs = utils.getValuesFromAnnotationValue(value,
      AnnotationMirror.class);
origin: com.yahoo.squidb/squidb-processor

if (modelSpecElement.getAnnotation(Implements.class) != null) {
  List<DeclaredTypeName> typeNames = utils.getTypeNamesFromAnnotationValue(
      utils.getAnnotationValue(modelSpecElement, Implements.class, "interfaceClasses"));
  if (!AptUtils.isEmpty(typeNames)) {
    interfaces.addAll(typeNames);
      .getAnnotationValue(modelSpecElement, Implements.class, "interfaceDefinitions");
  List<AnnotationMirror> interfaceSpecs = utils.getValuesFromAnnotationValue(value,
      AnnotationMirror.class);
origin: com.yahoo.squidb/squidb-processor

@SuppressWarnings("unchecked")
private void logErrors(Element element) {
  AnnotationValue errorsArrayValue = utils.getAnnotationValue(element, ModelGenErrors.class, "value");
  List<? extends AnnotationValue> errorsList = (List<? extends AnnotationValue>) errorsArrayValue.getValue();
  for (AnnotationValue error : errorsList) {
    logSingleError(error);
  }
}
com.yahoo.aptutils.utilsAptUtilsgetAnnotationValue

Popular methods of AptUtils

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

Popular in Java

  • Reading from database using SQL prepared statement
  • scheduleAtFixedRate (Timer)
  • addToBackStack (FragmentTransaction)
  • findViewById (Activity)
  • HttpServer (com.sun.net.httpserver)
    This class implements a simple HTTP server. A HttpServer is bound to an IP address and port number a
  • EOFException (java.io)
    Thrown when a program encounters the end of a file or stream during an input operation.
  • BigDecimal (java.math)
    An immutable arbitrary-precision signed decimal.A value is represented by an arbitrary-precision "un
  • MalformedURLException (java.net)
    This exception is thrown when a program attempts to create an URL from an incorrect specification.
  • MessageFormat (java.text)
    Produces concatenated messages in language-neutral way. New code should probably use java.util.Forma
  • Semaphore (java.util.concurrent)
    A counting semaphore. Conceptually, a semaphore maintains a set of permits. Each #acquire blocks if
  • Github Copilot alternatives
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