Package jadx.core.dex.nodes
Class PackageNode
java.lang.Object
jadx.core.dex.attributes.AttrNode
jadx.core.dex.attributes.nodes.LineAttrNode
jadx.core.dex.nodes.PackageNode
- All Implemented Interfaces:
IRenameNode,ICodeAnnotation,ICodeNodeRef,IAttributeNode,ILineAttributeNode,IDexNode,IPackageUpdate,Comparable<PackageNode>
public class PackageNode
extends LineAttrNode
implements IPackageUpdate, IDexNode, ICodeNodeRef, Comparable<PackageNode>
-
Nested Class Summary
Nested classes/interfaces inherited from interface jadx.api.metadata.ICodeAnnotation
ICodeAnnotation.AnnType -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate PackageInfoprivate JavaPackageprivate final @Nullable PackageNodeprivate final PackageInfoprivate final RootNodeprivate final List<PackageNode> -
Constructor Summary
ConstructorsModifierConstructorDescriptionprivatePackageNode(RootNode root, @Nullable PackageNode parentPkg, PackageInfo pkgInfo) -
Method Summary
Modifier and TypeMethodDescriptionintcompareTo(@NotNull PackageNode other) booleanstatic PackageNodegetForClass(RootNode root, String fullPkg, ClassNode cls) getName()static PackageNodegetOrBuild(RootNode root, String fullPkg) @Nullable PackageInfo@Nullable PackageNodeprivate static @Nullable PackageNodegetParentPkg(RootNode root, PackageInfo pgkInfo) booleanhasAlias()inthashCode()booleanbooleanisEmpty()booleanisLeaf()booleanisRoot()voidonParentPackageUpdate(PackageNode updatedPkg) voidvoidvoidroot()voidsetFullAlias(String fullAlias, boolean runUpdates) voidsetJavaNode(JavaPackage javaNode) voidsetLeafAlias(String alias, boolean runUpdates) toString()typeName()voidprivate voidupdatePackages(PackageNode updatedPkg) Methods inherited from class jadx.core.dex.attributes.nodes.LineAttrNode
addSourceLineFrom, copyLines, getDefPosition, getSourceLine, setDefPosition, setSourceLineMethods inherited from class jadx.core.dex.attributes.AttrNode
add, addAttr, addAttr, addAttr, addAttrs, clearAttributes, contains, contains, copyAttributeFrom, copyAttributesFrom, get, getAll, getAnnotation, getAttributesString, getAttributesStringsList, isAttrStorageEmpty, remove, remove, removeAttr, rewriteAttributeFrom, unloadAttributesMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface jadx.api.metadata.ICodeNodeRef
getDefPosition, setDefPosition
-
Field Details
-
root
-
pkgInfo
-
parentPkg
-
subPackages
-
classes
-
aliasPkgInfo
-
javaNode
-
-
Constructor Details
-
PackageNode
-
-
Method Details
-
getForClass
-
getOrBuild
-
getParentPkg
-
rename
- Specified by:
renamein interfaceIRenameNode
-
rename
-
setLeafAlias
-
setFullAlias
-
onParentPackageUpdate
- Specified by:
onParentPackageUpdatein interfaceIPackageUpdate
-
updatePackages
public void updatePackages() -
updatePackages
-
getName
-
getFullName
-
getPkgInfo
-
getAliasPkgInfo
-
hasAlias
public boolean hasAlias() -
hasParentAlias
public boolean hasParentAlias() -
removeAlias
public void removeAlias() -
getParentPkg
-
getParentAliasPkgInfo
-
isRoot
public boolean isRoot() -
isLeaf
public boolean isLeaf() -
getSubPackages
-
getClasses
-
getClassesNoDup
-
getJavaNode
-
setJavaNode
-
isEmpty
public boolean isEmpty() -
typeName
-
getAnnType
- Specified by:
getAnnTypein interfaceICodeAnnotation
-
root
-
getInputFileName
- Specified by:
getInputFileNamein interfaceIDexNode
-
equals
-
hashCode
public int hashCode() -
compareTo
- Specified by:
compareToin interfaceComparable<PackageNode>
-
toString
-