Class DexMethodNode

  • All Implemented Interfaces:
    java.io.Serializable, java.lang.Cloneable, javax.swing.tree.MutableTreeNode, javax.swing.tree.TreeNode

    public class DexMethodNode
    extends DexElementNode
    See Also:
    Serialized Form
    • Field Summary

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

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

      Constructors 
      Constructor Description
      DexMethodNode​(java.lang.String displayName, org.jf.dexlib2.immutable.reference.ImmutableMethodReference reference)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      int getMethodDefinitionsCount()  
      int getMethodReferencesCount()  
      org.jf.dexlib2.iface.reference.MethodReference getReference()  
      long getSize()
      Returns the private size of this dex node, i.e.
      boolean isSeed​(com.android.tools.proguard.ProguardSeedsMap seedsMap, com.android.tools.proguard.ProguardMap map, boolean checkChildren)  
      void setSize​(long size)  
      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
    • Constructor Detail

      • DexMethodNode

        public DexMethodNode​(@NonNull
                             java.lang.String displayName,
                             @Nullable
                             org.jf.dexlib2.immutable.reference.ImmutableMethodReference reference)
    • Method Detail

      • getReference

        @Nullable
        public org.jf.dexlib2.iface.reference.MethodReference getReference()
        Overrides:
        getReference in class DexElementNode
      • isSeed

        public boolean isSeed​(@Nullable
                              com.android.tools.proguard.ProguardSeedsMap seedsMap,
                              @Nullable
                              com.android.tools.proguard.ProguardMap map,
                              boolean checkChildren)
        Overrides:
        isSeed in class DexElementNode
      • setSize

        public void setSize​(long size)
      • getSize

        public long getSize()
        Description copied from class: DexElementNode
        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.
        Specified by:
        getSize in class DexElementNode
        Returns:
        private size of node in bytes