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

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

Best Java code snippets using com.android.dx.cf.attrib.BaseAnnotations.getAnnotations (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.attribBaseAnnotationsgetAnnotations

Javadoc

Gets the list of annotations associated with this instance.

Popular methods of BaseAnnotations

    Popular in Java

    • Reading from database using SQL prepared statement
    • startActivity (Activity)
    • setContentView (Activity)
    • setScale (BigDecimal)
    • Menu (java.awt)
    • BigDecimal (java.math)
      An immutable arbitrary-precision signed decimal.A value is represented by an arbitrary-precision "un
    • GregorianCalendar (java.util)
      GregorianCalendar is a concrete subclass of Calendarand provides the standard calendar used by most
    • Stack (java.util)
      Stack is a Last-In/First-Out(LIFO) data structure which represents a stack of objects. It enables u
    • JTextField (javax.swing)
    • XPath (javax.xml.xpath)
      XPath provides access to the XPath evaluation environment and expressions. Evaluation of XPath Expr
    • CodeWhisperer 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