Class DexElementNode

    • Field Summary

      • Fields inherited from class javax.swing.tree.DefaultMutableTreeNode

        allowsChildren, children, EMPTY_ENUMERATION, parent, userObject
    • Method Summary

      All Methods Static Methods Instance Methods Abstract Methods Concrete Methods 
      Modifier and Type Method Description
      protected static java.lang.String combine​(java.lang.String parentPackage, java.lang.String childName)  
      DexElementNode getChildAt​(int i)  
      <T extends DexElementNode>
      T
      getChildByType​(java.lang.String name, java.lang.Class<T> type)  
      int getMethodDefinitionsCount()  
      int getMethodReferencesCount()  
      java.lang.String getName()  
      DexElementNode getParent()  
      org.jf.dexlib2.iface.reference.Reference getReference()  
      abstract long getSize()
      Returns the private size of this dex node, i.e.
      boolean isDefined()  
      boolean isRemoved()  
      boolean isSeed​(com.android.tools.proguard.ProguardSeedsMap seedsMap, com.android.tools.proguard.ProguardMap map, boolean checkChildren)  
      void setDefined​(boolean defined)  
      protected void setMethodDefinitionsCount​(int methodDefinitionsCount)  
      protected void setMethodReferencesCount​(int methodReferencesCount)  
      void setRemoved​(boolean removed)  
      void sort​(java.util.Comparator<DexElementNode> comparator)  
      void update()  
      • Methods inherited from class javax.swing.tree.DefaultMutableTreeNode

        add, breadthFirstEnumeration, children, clone, depthFirstEnumeration, getAllowsChildren, getChildAfter, getChildBefore, getChildCount, getDepth, getFirstChild, getFirstLeaf, getIndex, getLastChild, getLastLeaf, getLeafCount, getLevel, getNextLeaf, getNextNode, getNextSibling, getPath, getPathToRoot, getPreviousLeaf, getPreviousNode, getPreviousSibling, getRoot, getSharedAncestor, getSiblingCount, getUserObject, getUserObjectPath, insert, isLeaf, isNodeAncestor, isNodeChild, isNodeDescendant, isNodeRelated, isNodeSibling, isRoot, pathFromAncestorEnumeration, postorderEnumeration, preorderEnumeration, remove, remove, removeAllChildren, removeFromParent, setAllowsChildren, setParent, setUserObject, toString
      • Methods inherited from class java.lang.Object

        equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Method Detail

      • getName

        @NonNull
        public java.lang.String getName()
      • getReference

        @Nullable
        public org.jf.dexlib2.iface.reference.Reference getReference()
      • getChildAt

        public DexElementNode getChildAt​(int i)
        Specified by:
        getChildAt in interface javax.swing.tree.TreeNode
        Overrides:
        getChildAt in class javax.swing.tree.DefaultMutableTreeNode
      • sort

        public void sort​(java.util.Comparator<DexElementNode> comparator)
      • getChildByType

        @Nullable
        public <T extends DexElementNode> T getChildByType​(@NonNull
                                                           java.lang.String name,
                                                           java.lang.Class<T> type)
      • isSeed

        public boolean isSeed​(@Nullable
                              com.android.tools.proguard.ProguardSeedsMap seedsMap,
                              @Nullable
                              com.android.tools.proguard.ProguardMap map,
                              boolean checkChildren)
      • getParent

        public DexElementNode getParent()
        Specified by:
        getParent in interface javax.swing.tree.TreeNode
        Overrides:
        getParent in class javax.swing.tree.DefaultMutableTreeNode
      • update

        public void update()
      • combine

        protected static java.lang.String combine​(@NonNull
                                                  java.lang.String parentPackage,
                                                  @NonNull
                                                  java.lang.String childName)
      • isDefined

        public boolean isDefined()
      • setDefined

        public void setDefined​(boolean defined)
      • isRemoved

        public boolean isRemoved()
      • setRemoved

        public void setRemoved​(boolean removed)
      • getMethodReferencesCount

        public int getMethodReferencesCount()
      • setMethodReferencesCount

        protected void setMethodReferencesCount​(int methodReferencesCount)
      • getMethodDefinitionsCount

        public int getMethodDefinitionsCount()
      • setMethodDefinitionsCount

        protected void setMethodDefinitionsCount​(int methodDefinitionsCount)
      • getSize

        public abstract long getSize()
        Returns the private size of this dex node, i.e. size that can not shared with other nodes. Example of shared size that is not included in this value: strings in the string pool, annotation sets.
        Returns:
        private size of node in bytes