Class DexPackageNode

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

    public class DexPackageNode
    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
      DexPackageNode​(java.lang.String name, java.lang.String packageName)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      DexClassNode getOrCreateClass​(java.lang.String parentPackage, java.lang.String qualifiedClassName, org.jf.dexlib2.iface.reference.TypeReference typeReference)  
      java.lang.String getPackageName()  
      long getSize()
      Returns the private size of this dex node, i.e.
      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

      • DexPackageNode

        public DexPackageNode​(@NonNull
                              java.lang.String name,
                              @Nullable
                              java.lang.String packageName)
    • Method Detail

      • 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
      • getOrCreateClass

        @NonNull
        public DexClassNode getOrCreateClass​(@NonNull
                                             java.lang.String parentPackage,
                                             @NonNull
                                             java.lang.String qualifiedClassName,
                                             @Nullable
                                             org.jf.dexlib2.iface.reference.TypeReference typeReference)
      • getPackageName

        @Nullable
        public java.lang.String getPackageName()