Package jadx.core.dex.attributes.annotations

Examples of jadx.core.dex.attributes.annotations.AnnotationsList


  public <T extends IAttribute> T get(AType<T> type) {
    return (T) attributes.get(type);
  }

  public Annotation getAnnotation(String cls) {
    AnnotationsList aList = get(AType.ANNOTATION_LIST);
    return aList == null ? null : aList.get(cls);
  }
View Full Code Here


    for (int i = 0; i < size; i++) {
      Section anSection = dex.openSection(section.readInt());
      Annotation a = readAnnotation(dex, anSection, true);
      list.add(a);
    }
    return new AnnotationsList(list);
  }
View Full Code Here

  public void addForField(CodeWriter code, FieldNode field) {
    add(field, code);
  }

  public void addForParameter(CodeWriter code, MethodParameters paramsAnnotations, int n) {
    AnnotationsList aList = paramsAnnotations.getParamList().get(n);
    if (aList == null || aList.isEmpty()) {
      return;
    }
    for (Annotation a : aList.getAll()) {
      formatAnnotation(code, a);
      code.add(' ');
    }
  }
View Full Code Here

      code.add(' ');
    }
  }

  private void add(IAttributeNode node, CodeWriter code) {
    AnnotationsList aList = node.get(AType.ANNOTATION_LIST);
    if (aList == null || aList.isEmpty()) {
      return;
    }
    for (Annotation a : aList.getAll()) {
      String aCls = a.getAnnotationClass();
      if (aCls.startsWith(Consts.DALVIK_ANNOTATION_PKG)) {
        // skip
        if (Consts.DEBUG) {
          code.startLine("// " + a);
View Full Code Here

TOP

Related Classes of jadx.core.dex.attributes.annotations.AnnotationsList

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.