Class CallStackGroupDescriptor
java.lang.Object
org.eclipse.tracecompass.incubator.callstack.core.base.CallStackGroupDescriptor
- All Implemented Interfaces:
IWeightedTreeGroupDescriptor
,ICallStackGroupDescriptor
A basic group descriptor implementation.
- Author:
- Geneviève Bastien
-
Constructor Summary
ConstructorDescriptionCallStackGroupDescriptor
(String name, @Nullable ICallStackGroupDescriptor nextGroup, boolean isSymbolKeyGroup) Constructor -
Method Summary
Modifier and TypeMethodDescriptiongetName()
Get the human-readable name for this group descriptor@Nullable ICallStackGroupDescriptor
Get the group descriptor at the next level.boolean
Get whether the value of this group should be used as the key for the symbol provider.toString()
-
Constructor Details
-
CallStackGroupDescriptor
public CallStackGroupDescriptor(String name, @Nullable ICallStackGroupDescriptor nextGroup, boolean isSymbolKeyGroup) Constructor- Parameters:
name
- The name of this groupnextGroup
- The next group of the hierarchy, ie the child of the group being constructed ornull
if this group is the leafisSymbolKeyGroup
- Whether this level contains the symbol key
-
-
Method Details
-
getNextGroup
Description copied from interface:IWeightedTreeGroupDescriptor
Get the group descriptor at the next level.- Specified by:
getNextGroup
in interfaceICallStackGroupDescriptor
- Specified by:
getNextGroup
in interfaceIWeightedTreeGroupDescriptor
- Returns:
- The next group or
null
if this is a leaf level
-
isSymbolKeyGroup
public boolean isSymbolKeyGroup()Description copied from interface:ICallStackGroupDescriptor
Get whether the value of this group should be used as the key for the symbol provider. For instance, for some callstack, the group corresponding to the process ID would be the symbol key group.- Specified by:
isSymbolKeyGroup
in interfaceICallStackGroupDescriptor
- Returns:
true
if the values of this group are used as the symbol mapping key.
-
getName
Description copied from interface:IWeightedTreeGroupDescriptor
Get the human-readable name for this group descriptor- Specified by:
getName
in interfaceIWeightedTreeGroupDescriptor
- Returns:
- The name of this group descriptor
-
toString
-