Package jadx.core.dex.attributes
Class AttrNode
java.lang.Object
jadx.core.dex.attributes.AttrNode
- All Implemented Interfaces:
IAttributeNode
- Direct Known Subclasses:
AbstractRegion,BlockNode,CallGraphAttrNode,Edge,IfCondition,InsnContainer,LineAttrNode,Typed
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidvoidaddAttr(IJadxAttribute attr) <T> voidaddAttr(IJadxAttrType<AttrList<T>> type, List<T> list) <T> voidaddAttr(IJadxAttrType<AttrList<T>> type, T obj) voidaddAttrs(List<IJadxAttribute> list) private voidaddDebugComment(String msg) void<T extends IJadxAttribute>
booleancontains(IJadxAttrType<T> type) boolean<T extends IJadxAttribute>
voidcopyAttributeFrom(AttrNode attrNode, AType<T> attrType) voidcopyAttributesFrom(AttrNode attrNode) <T extends IJadxAttribute>
Tget(IJadxAttrType<T> type) <T> List<T> getAll(IJadxAttrType<AttrList<T>> type) getAnnotation(String cls) private AttributeStorageboolean<T extends IJadxAttribute>
voidremove(IJadxAttrType<T> type) voidvoidremoveAttr(IJadxAttribute attr) <T extends IJadxAttribute>
voidrewriteAttributeFrom(AttrNode attrNode, AType<T> attrType) Remove attribute in this node, add copy from other if existsvoidprivate void
-
Field Details
-
EMPTY_ATTR_STORAGE
-
storage
-
-
Constructor Details
-
AttrNode
public AttrNode()
-
-
Method Details
-
add
- Specified by:
addin interfaceIAttributeNode
-
addAttr
- Specified by:
addAttrin interfaceIAttributeNode
-
addAttrs
- Specified by:
addAttrsin interfaceIAttributeNode
-
addAttr
- Specified by:
addAttrin interfaceIAttributeNode
-
addAttr
-
copyAttributesFrom
- Specified by:
copyAttributesFromin interfaceIAttributeNode
-
copyAttributeFrom
- Specified by:
copyAttributeFromin interfaceIAttributeNode
-
rewriteAttributeFrom
Remove attribute in this node, add copy from other if exists- Specified by:
rewriteAttributeFromin interfaceIAttributeNode
-
initStorage
-
unloadIfEmpty
private void unloadIfEmpty() -
contains
- Specified by:
containsin interfaceIAttributeNode
-
contains
- Specified by:
containsin interfaceIAttributeNode
-
get
- Specified by:
getin interfaceIAttributeNode
-
getAnnotation
- Specified by:
getAnnotationin interfaceIAttributeNode
-
getAll
- Specified by:
getAllin interfaceIAttributeNode
-
remove
- Specified by:
removein interfaceIAttributeNode
-
remove
- Specified by:
removein interfaceIAttributeNode
-
removeAttr
- Specified by:
removeAttrin interfaceIAttributeNode
-
clearAttributes
public void clearAttributes()- Specified by:
clearAttributesin interfaceIAttributeNode
-
unloadAttributes
public void unloadAttributes() -
getAttributesStringsList
- Specified by:
getAttributesStringsListin interfaceIAttributeNode
-
getAttributesString
- Specified by:
getAttributesStringin interfaceIAttributeNode
-
isAttrStorageEmpty
public boolean isAttrStorageEmpty()- Specified by:
isAttrStorageEmptyin interfaceIAttributeNode
-
addDebugComment
-