Class DexPackageNode
- java.lang.Object
-
- javax.swing.tree.DefaultMutableTreeNode
-
- com.android.tools.apk.analyzer.dex.tree.DexElementNode
-
- com.android.tools.apk.analyzer.dex.tree.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
-
-
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 DexClassNodegetOrCreateClass(java.lang.String parentPackage, java.lang.String qualifiedClassName, org.jf.dexlib2.iface.reference.TypeReference typeReference)java.lang.StringgetPackageName()longgetSize()Returns the private size of this dex node, i.e.voidupdate()-
Methods inherited from class com.android.tools.apk.analyzer.dex.tree.DexElementNode
combine, getChildAt, getChildByType, getMethodDefinitionsCount, getMethodReferencesCount, getName, getParent, getReference, isDefined, isRemoved, isSeed, setDefined, setMethodDefinitionsCount, setMethodReferencesCount, setRemoved, sort
-
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
-
-
-
-
Method Detail
-
getSize
public long getSize()
Description copied from class:DexElementNodeReturns 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:
getSizein classDexElementNode- 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)
-
update
public void update()
- Overrides:
updatein classDexElementNode
-
getPackageName
@Nullable public java.lang.String getPackageName()
-
-