Class DexElementNode
- java.lang.Object
-
- javax.swing.tree.DefaultMutableTreeNode
-
- com.android.tools.apk.analyzer.dex.tree.DexElementNode
-
- All Implemented Interfaces:
java.io.Serializable,java.lang.Cloneable,javax.swing.tree.MutableTreeNode,javax.swing.tree.TreeNode
- Direct Known Subclasses:
DexClassNode,DexFieldNode,DexMethodNode,DexPackageNode
public abstract class DexElementNode extends javax.swing.tree.DefaultMutableTreeNode- See Also:
- Serialized Form
-
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description protected static java.lang.Stringcombine(java.lang.String parentPackage, java.lang.String childName)DexElementNodegetChildAt(int i)<T extends DexElementNode>
TgetChildByType(java.lang.String name, java.lang.Class<T> type)intgetMethodDefinitionsCount()intgetMethodReferencesCount()java.lang.StringgetName()DexElementNodegetParent()org.jf.dexlib2.iface.reference.ReferencegetReference()abstract longgetSize()Returns the private size of this dex node, i.e.booleanisDefined()booleanisRemoved()booleanisSeed(com.android.tools.proguard.ProguardSeedsMap seedsMap, com.android.tools.proguard.ProguardMap map, boolean checkChildren)voidsetDefined(boolean defined)protected voidsetMethodDefinitionsCount(int methodDefinitionsCount)protected voidsetMethodReferencesCount(int methodReferencesCount)voidsetRemoved(boolean removed)voidsort(java.util.Comparator<DexElementNode> comparator)voidupdate()-
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
-
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:
getChildAtin interfacejavax.swing.tree.TreeNode- Overrides:
getChildAtin classjavax.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:
getParentin interfacejavax.swing.tree.TreeNode- Overrides:
getParentin classjavax.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
-
-