Class GroupPath
java.lang.Object
ghidra.program.util.GroupPath
- All Implemented Interfaces:
Serializable
The
GroupPath is a class to represent a unique path in a tree for a Group.- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanGet the Group for this group path object.Get the last name in the path.Get the parent path for this group.String[]getPath()Return the array of names that make up this group's path.getPathComponent(int index) Get the name at the given index into this group's path.intGet the number of names (levels) that make up this path.inthashCode()booleanisDescendant(GroupPath grpPath) Return true if the indicated group path is a descendant of this group path.pathByAddingChild(String child) Create a new GroupPath object by adding the given child name to this group path.toString()Returns a string representation of this group path.voidupdateGroupPath(String oldname, String newname) Update this group path with the new group name wherever the old group name is found.
-
Constructor Details
-
GroupPath
Construct a new GroupPath that is only a single level.- Parameters:
groupName- name of group
-
GroupPath
Construct a new GroupPath with the given names.- Parameters:
groupNames- group names. The first name is the oldest ancestor and the last name is the youngest descendant in the path.
-
-
Method Details
-
updateGroupPath
-
equals
-
getLastPathComponent
-
getGroup
-
getParentPath
Get the parent path for this group. -
getPath
Return the array of names that make up this group's path. -
getPathCount
public int getPathCount()Get the number of names (levels) that make up this path. -
getPathComponent
Get the name at the given index into this group's path.- Parameters:
index- the index in the group path
-
isDescendant
Return true if the indicated group path is a descendant of this group path.- Parameters:
grpPath- the group path
-
pathByAddingChild
-
toString
-
hashCode
-