| Package | Description |
|---|---|
| com.android.dx.dex.file | |
| com.android.dx.rop.annotation | |
| com.android.dx.rop.cst |
Interfaces and implementation of things related to the constant pool.
|
| Modifier and Type | Method and Description |
|---|---|
static Annotation |
AnnotationUtils.makeAnnotationDefault(Annotation defaults)
Constructs a standard
AnnotationDefault annotation. |
static Annotation |
AnnotationUtils.makeEnclosingClass(CstType clazz)
Constructs a standard
EnclosingClass annotation. |
static Annotation |
AnnotationUtils.makeEnclosingMethod(CstMethodRef method)
Constructs a standard
EnclosingMethod annotation. |
static Annotation |
AnnotationUtils.makeInnerClass(CstString name,
int accessFlags)
Constructs a standard
InnerClass annotation. |
static Annotation |
AnnotationUtils.makeMemberClasses(TypeList types)
Constructs a standard
MemberClasses annotation. |
static Annotation |
AnnotationUtils.makeSignature(CstString signature)
Constructs a standard
Signature annotation. |
static Annotation |
AnnotationUtils.makeSourceDebugExtension(CstString smapString)
Constructs a standard
SourceDebugExtension annotation. |
static Annotation |
AnnotationUtils.makeThrows(TypeList types)
Constructs a standard
Throws annotation. |
| Modifier and Type | Method and Description |
|---|---|
static void |
ValueEncoder.addContents(DexFile file,
Annotation annotation)
Helper for
addContents() methods, which adds
contents for a particular Annotation, calling itself
recursively should it encounter a nested annotation. |
static Annotation |
AnnotationUtils.makeAnnotationDefault(Annotation defaults)
Constructs a standard
AnnotationDefault annotation. |
void |
ValueEncoder.writeAnnotation(Annotation annotation,
boolean topLevel)
Writes out the encoded form of the given annotation, that is,
as an
encoded_annotation and not including a
value_type prefix. |
| Constructor and Description |
|---|
AnnotationItem(Annotation annotation,
DexFile dexFile)
Constructs an instance.
|
| Modifier and Type | Method and Description |
|---|---|
java.util.Collection<Annotation> |
Annotations.getAnnotations()
Gets the set of annotations contained in this instance.
|
| Modifier and Type | Method and Description |
|---|---|
void |
Annotations.add(Annotation annotation)
Adds an element to this instance.
|
static Annotations |
Annotations.combine(Annotations annotations,
Annotation annotation)
Constructs an immutable instance which is the combination of the
given instance with the given additional annotation.
|
int |
Annotation.compareTo(Annotation other) |
| Modifier and Type | Method and Description |
|---|---|
Annotation |
CstAnnotation.getAnnotation()
Get the underlying annotation.
|
| Constructor and Description |
|---|
CstAnnotation(Annotation annotation)
Constructs an instance.
|
Copyright © 2020. All Rights Reserved.