Package jadx.core.dex.attributes
Class AttributeStorage
java.lang.Object
jadx.core.dex.attributes.AttributeStorage
- Direct Known Subclasses:
EmptyAttrStorage
Storage for different attribute types:
1. Flags - boolean attribute (set or not)
2. Attributes - class instance (
1. Flags - boolean attribute (set or not)
2. Attributes - class instance (
IJadxAttribute) associated with an attribute type
(IJadxAttrType)-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate Map<IJadxAttrType<?>, IJadxAttribute> private static final Map<IJadxAttrType<?>, IJadxAttribute> -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidadd(IJadxAttribute attr) <T> voidadd(IJadxAttrType<AttrList<T>> type, T obj) voidvoidadd(List<IJadxAttribute> list) voidaddAll(AttributeStorage otherList) <T> voidaddAttrList(IJadxAttrType<AttrList<T>> type, List<T> attrList) void<T extends IJadxAttribute>
booleancontains(IJadxAttrType<T> type) booleanstatic AttributeStoragefromList(List<IJadxAttribute> list) <T extends IJadxAttribute>
Tget(IJadxAttrType<T> type) <T> List<T> getAll(IJadxAttrType<AttrList<T>> type) getAnnotation(String cls) booleanisEmpty()voidremove(IJadxAttribute attr) <T extends IJadxAttribute>
voidremove(IJadxAttrType<T> type) voidtoString()voidprivate voidwriteAttributes(Consumer<Map<IJadxAttrType<?>, IJadxAttribute>> mapConsumer)
-
Field Details
-
EMPTY_ATTRIBUTES
-
flags
-
attributes
-
-
Constructor Details
-
AttributeStorage
public AttributeStorage()
-
-
Method Details
-
fromList
-
add
-
add
-
add
-
add
-
addAttrList
-
addAll
-
contains
-
contains
-
get
-
getAnnotation
-
getAll
-
remove
-
clearFlags
public void clearFlags() -
remove
-
remove
-
writeAttributes
-
unloadAttributes
public void unloadAttributes() -
getAttributeStrings
-
isEmpty
public boolean isEmpty() -
toString
-