Tabnine Logo
BaseAnnotations
Code IndexAdd Tabnine to your IDE (free)

How to use
BaseAnnotations
in
com.android.dx.cf.attrib

Best Java code snippets using com.android.dx.cf.attrib.BaseAnnotations (Showing top 11 results out of 315)

origin: com.android/dx

/**
 * Inspects a class annotation.
 *
 * @param cf {@code non-null;} class file
 * @param ann {@code non-null;} annotation
 */
private void visitClassAnnotation(DirectClassFile cf,
    BaseAnnotations ann) {
  if (!args.eTypes.contains(ElementType.TYPE)) {
    return;
  }
  for (Annotation anAnn : ann.getAnnotations().getAnnotations()) {
    String annClassName
        = anAnn.getType().getClassType().getClassName();
    if (args.aclass.equals(annClassName)) {
      printMatch(cf);
    }
  }
}
origin: com.jakewharton.android.repackaged/dalvik-dx

/**
 * Inspects a class annotation.
 *
 * @param cf {@code non-null;} class file
 * @param ann {@code non-null;} annotation
 */
private void visitClassAnnotation(DirectClassFile cf,
    BaseAnnotations ann) {
  if (!args.eTypes.contains(ElementType.TYPE)) {
    return;
  }
  for (Annotation anAnn : ann.getAnnotations().getAnnotations()) {
    String annClassName
        = anAnn.getType().getClassType().getClassName();
    if (args.aclass.equals(annClassName)) {
      printMatch(cf);
    }
  }
}
origin: com.google.android.tools/dx

/**
 * Inspects a class annotation.
 *
 * @param cf {@code non-null;} class file
 * @param ann {@code non-null;} annotation
 */
private void visitClassAnnotation(DirectClassFile cf,
    BaseAnnotations ann) {
  if (!args.eTypes.contains(ElementType.TYPE)) {
    return;
  }
  for (Annotation anAnn : ann.getAnnotations().getAnnotations()) {
    String annClassName
        = anAnn.getType().getClassType().getClassName();
    if (args.aclass.equals(annClassName)) {
      printMatch(cf);
    }
  }
}
origin: dragome/dragome-sdk

/**
 * Inspects a class annotation.
 *
 * @param cf {@code non-null;} class file
 * @param ann {@code non-null;} annotation
 */
private void visitClassAnnotation(DirectClassFile cf,
    BaseAnnotations ann) {
  if (!args.eTypes.contains(ElementType.TYPE)) {
    return;
  }
  for (Annotation anAnn : ann.getAnnotations().getAnnotations()) {
    String annClassName
        = anAnn.getType().getClassType().getClassName();
    if (args.aclass.equals(annClassName)) {
      printMatch(cf);
    }
  }
}
origin: com.android.tools.build/builder

/**
 * Inspects a class annotation.
 *
 * @param cf {@code non-null;} class file
 * @param ann {@code non-null;} annotation
 */
private void visitClassAnnotation(DirectClassFile cf,
    BaseAnnotations ann) {
  if (!args.eTypes.contains(ElementType.TYPE)) {
    return;
  }
  for (Annotation anAnn : ann.getAnnotations().getAnnotations()) {
    String annClassName
        = anAnn.getType().getClassType().getClassName();
    if (args.aclass.equals(annClassName)) {
      printMatch(cf);
    }
  }
}
origin: com.jakewharton.android.repackaged/dalvik-dx

/**
 * Inspects a package annotation
 *
 * @param cf {@code non-null;} class file of "package-info" pseudo-class
 * @param ann {@code non-null;} annotation
 */
private void visitPackageAnnotation(
    DirectClassFile cf, BaseAnnotations ann) {
  if (!args.eTypes.contains(ElementType.PACKAGE)) {
    return;
  }
  String packageName = cf.getThisClass().getClassType().getClassName();
  int slashIndex = packageName.lastIndexOf('/');
  if (slashIndex == -1) {
    packageName = "";
  } else {
    packageName
        = packageName.substring(0, slashIndex);
  }
  for (Annotation anAnn : ann.getAnnotations().getAnnotations()) {
    String annClassName
        = anAnn.getType().getClassType().getClassName();
    if (args.aclass.equals(annClassName)) {
      printMatchPackage(packageName);
    }
  }
}
origin: com.android.tools.build/builder

/**
 * Inspects a package annotation
 *
 * @param cf {@code non-null;} class file of "package-info" pseudo-class
 * @param ann {@code non-null;} annotation
 */
private void visitPackageAnnotation(
    DirectClassFile cf, BaseAnnotations ann) {
  if (!args.eTypes.contains(ElementType.PACKAGE)) {
    return;
  }
  String packageName = cf.getThisClass().getClassType().getClassName();
  int slashIndex = packageName.lastIndexOf('/');
  if (slashIndex == -1) {
    packageName = "";
  } else {
    packageName
        = packageName.substring(0, slashIndex);
  }
  for (Annotation anAnn : ann.getAnnotations().getAnnotations()) {
    String annClassName
        = anAnn.getType().getClassType().getClassName();
    if (args.aclass.equals(annClassName)) {
      printMatchPackage(packageName);
    }
  }
}
origin: com.google.android.tools/dx

/**
 * Inspects a package annotation
 *
 * @param cf {@code non-null;} class file of "package-info" pseudo-class
 * @param ann {@code non-null;} annotation
 */
private void visitPackageAnnotation(
    DirectClassFile cf, BaseAnnotations ann) {
  if (!args.eTypes.contains(ElementType.PACKAGE)) {
    return;
  }
  String packageName = cf.getThisClass().getClassType().getClassName();
  int slashIndex = packageName.lastIndexOf('/');
  if (slashIndex == -1) {
    packageName = "";
  } else {
    packageName
        = packageName.substring(0, slashIndex);
  }
  for (Annotation anAnn : ann.getAnnotations().getAnnotations()) {
    String annClassName
        = anAnn.getType().getClassType().getClassName();
    if (args.aclass.equals(annClassName)) {
      printMatchPackage(packageName);
    }
  }
}
origin: com.android/dx

/**
 * Inspects a package annotation
 *
 * @param cf {@code non-null;} class file of "package-info" pseudo-class
 * @param ann {@code non-null;} annotation
 */
private void visitPackageAnnotation(
    DirectClassFile cf, BaseAnnotations ann) {
  if (!args.eTypes.contains(ElementType.PACKAGE)) {
    return;
  }
  String packageName = cf.getThisClass().getClassType().getClassName();
  int slashIndex = packageName.lastIndexOf('/');
  if (slashIndex == -1) {
    packageName = "";
  } else {
    packageName
        = packageName.substring(0, slashIndex);
  }
  for (Annotation anAnn : ann.getAnnotations().getAnnotations()) {
    String annClassName
        = anAnn.getType().getClassType().getClassName();
    if (args.aclass.equals(annClassName)) {
      printMatchPackage(packageName);
    }
  }
}
origin: dragome/dragome-sdk

/**
 * Inspects a package annotation
 *
 * @param cf {@code non-null;} class file of "package-info" pseudo-class
 * @param ann {@code non-null;} annotation
 */
private void visitPackageAnnotation(
    DirectClassFile cf, BaseAnnotations ann) {
  if (!args.eTypes.contains(ElementType.PACKAGE)) {
    return;
  }
  String packageName = cf.getThisClass().getClassType().getClassName();
  int slashIndex = packageName.lastIndexOf('/');
  if (slashIndex == -1) {
    packageName = "";
  } else {
    packageName
        = packageName.substring(0, slashIndex);
  }
  for (Annotation anAnn : ann.getAnnotations().getAnnotations()) {
    String annClassName
        = anAnn.getType().getClassType().getClassName();
    if (args.aclass.equals(annClassName)) {
      printMatchPackage(packageName);
    }
  }
}
origin: dragome/dragome-sdk

private static Annotation getAnnotation(AttributeList attrs, Class<?> annotationClazz)
{
  BaseAnnotations a= (BaseAnnotations) attrs.findFirst(AttRuntimeInvisibleAnnotations.ATTRIBUTE_NAME);
  if (a != null)
  {
    String annotationName= getClassWithSlashes(annotationClazz);
    for (Annotation an : a.getAnnotations().getAnnotations())
    {
      if (an.getType().getClassType().getClassName().equals(annotationName))
      {
        return an;
      }
    }
  }
  return null;
}
com.android.dx.cf.attribBaseAnnotations

Javadoc

Base class for annotations attributes.

Most used methods

  • getAnnotations
    Gets the list of annotations associated with this instance.

Popular in Java

  • Start an intent from android
  • getApplicationContext (Context)
  • getContentResolver (Context)
  • requestLocationUpdates (LocationManager)
  • BufferedWriter (java.io)
    Wraps an existing Writer and buffers the output. Expensive interaction with the underlying reader is
  • FileNotFoundException (java.io)
    Thrown when a file specified by a program cannot be found.
  • Selector (java.nio.channels)
    A controller for the selection of SelectableChannel objects. Selectable channels can be registered w
  • NoSuchElementException (java.util)
    Thrown when trying to retrieve an element past the end of an Enumeration or Iterator.
  • HttpServletRequest (javax.servlet.http)
    Extends the javax.servlet.ServletRequest interface to provide request information for HTTP servlets.
  • StringUtils (org.apache.commons.lang)
    Operations on java.lang.String that arenull safe. * IsEmpty/IsBlank - checks if a String contains
  • Top 12 Jupyter Notebook extensions
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