Class AttrNode

    • Constructor Summary

      Constructors 
      Constructor Description
      AttrNode()  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void add​(AFlag flag)  
      void addAttr​(jadx.api.plugins.input.data.attributes.IJadxAttribute attr)  
      <T> void addAttr​(jadx.api.plugins.input.data.attributes.IJadxAttrType<AttrList<T>> type, java.util.List<T> list)  
      <T> void addAttr​(jadx.api.plugins.input.data.attributes.IJadxAttrType<AttrList<T>> type, T obj)  
      void addAttrs​(java.util.List<jadx.api.plugins.input.data.attributes.IJadxAttribute> list)  
      void clearAttributes()  
      <T extends jadx.api.plugins.input.data.attributes.IJadxAttribute>
      boolean
      contains​(jadx.api.plugins.input.data.attributes.IJadxAttrType<T> type)  
      boolean contains​(AFlag flag)  
      <T extends jadx.api.plugins.input.data.attributes.IJadxAttribute>
      void
      copyAttributeFrom​(AttrNode attrNode, AType<T> attrType)  
      void copyAttributesFrom​(AttrNode attrNode)  
      <T extends jadx.api.plugins.input.data.attributes.IJadxAttribute>
      T
      get​(jadx.api.plugins.input.data.attributes.IJadxAttrType<T> type)  
      <T> java.util.List<T> getAll​(jadx.api.plugins.input.data.attributes.IJadxAttrType<AttrList<T>> type)  
      jadx.api.plugins.input.data.annotations.IAnnotation getAnnotation​(java.lang.String cls)  
      java.lang.String getAttributesString()  
      java.util.List<java.lang.String> getAttributesStringsList()  
      boolean isAttrStorageEmpty()  
      <T extends jadx.api.plugins.input.data.attributes.IJadxAttribute>
      void
      remove​(jadx.api.plugins.input.data.attributes.IJadxAttrType<T> type)  
      void remove​(AFlag flag)  
      void removeAttr​(jadx.api.plugins.input.data.attributes.IJadxAttribute attr)  
      <T extends jadx.api.plugins.input.data.attributes.IJadxAttribute>
      void
      rewriteAttributeFrom​(AttrNode attrNode, AType<T> attrType)
      Remove attribute in this node, add copy from other if exists
      void unloadAttributes()  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • AttrNode

        public AttrNode()
    • Method Detail

      • addAttr

        public void addAttr​(jadx.api.plugins.input.data.attributes.IJadxAttribute attr)
        Specified by:
        addAttr in interface IAttributeNode
      • addAttrs

        public void addAttrs​(java.util.List<jadx.api.plugins.input.data.attributes.IJadxAttribute> list)
        Specified by:
        addAttrs in interface IAttributeNode
      • addAttr

        public <T> void addAttr​(jadx.api.plugins.input.data.attributes.IJadxAttrType<AttrList<T>> type,
                                T obj)
        Specified by:
        addAttr in interface IAttributeNode
      • addAttr

        public <T> void addAttr​(jadx.api.plugins.input.data.attributes.IJadxAttrType<AttrList<T>> type,
                                java.util.List<T> list)
      • copyAttributeFrom

        public <T extends jadx.api.plugins.input.data.attributes.IJadxAttribute> void copyAttributeFrom​(AttrNode attrNode,
                                                                                                        AType<T> attrType)
        Specified by:
        copyAttributeFrom in interface IAttributeNode
      • rewriteAttributeFrom

        public <T extends jadx.api.plugins.input.data.attributes.IJadxAttribute> void rewriteAttributeFrom​(AttrNode attrNode,
                                                                                                           AType<T> attrType)
        Remove attribute in this node, add copy from other if exists
        Specified by:
        rewriteAttributeFrom in interface IAttributeNode
      • contains

        public <T extends jadx.api.plugins.input.data.attributes.IJadxAttribute> boolean contains​(jadx.api.plugins.input.data.attributes.IJadxAttrType<T> type)
        Specified by:
        contains in interface IAttributeNode
      • get

        public <T extends jadx.api.plugins.input.data.attributes.IJadxAttribute> T get​(jadx.api.plugins.input.data.attributes.IJadxAttrType<T> type)
        Specified by:
        get in interface IAttributeNode
      • getAnnotation

        public jadx.api.plugins.input.data.annotations.IAnnotation getAnnotation​(java.lang.String cls)
        Specified by:
        getAnnotation in interface IAttributeNode
      • getAll

        public <T> java.util.List<T> getAll​(jadx.api.plugins.input.data.attributes.IJadxAttrType<AttrList<T>> type)
        Specified by:
        getAll in interface IAttributeNode
      • remove

        public <T extends jadx.api.plugins.input.data.attributes.IJadxAttribute> void remove​(jadx.api.plugins.input.data.attributes.IJadxAttrType<T> type)
        Specified by:
        remove in interface IAttributeNode
      • removeAttr

        public void removeAttr​(jadx.api.plugins.input.data.attributes.IJadxAttribute attr)
        Specified by:
        removeAttr in interface IAttributeNode
      • unloadAttributes

        public void unloadAttributes()