blob: 5fe7950f3220feadc7123204372df49b6d18fa58 [file] [log] [blame]
/*******************************************************************************
* Copyright (c) 2017 École Polytechnique de Montréal
*
* All rights reserved. This program and the accompanying materials are
* made available under the terms of the Eclipse Public License v1.0 which
* accompanies this distribution, and is available at
* http://www.eclipse.org/legal/epl-v10.html
*******************************************************************************/
package org.eclipse.tracecompass.incubator.callstack.core.callgraph;
import org.eclipse.jdt.annotation.Nullable;
import org.eclipse.tracecompass.incubator.callstack.core.base.ICallStackGroupDescriptor;
/**
* A group descriptor represents all the groups together
*
* @author Geneviève Bastien
*/
public final class AllGroupDescriptor implements ICallStackGroupDescriptor {
private static final String ALL_NAME = "all"; //$NON-NLS-1$
private static final ICallStackGroupDescriptor INSTANCE = new AllGroupDescriptor();
/**
* Get the instance of the all group descriptor
*
* @return The instance of this group.
*/
public static ICallStackGroupDescriptor getInstance() {
return INSTANCE;
}
private AllGroupDescriptor() {
}
@Override
public @Nullable ICallStackGroupDescriptor getNextGroup() {
return null;
}
@Override
public boolean isSymbolKeyGroup() {
return false;
}
@Override
public String getName() {
return ALL_NAME;
}
// @Override
// public List<ICallStackElement> getElements(@Nullable ICallStackElement parent, @Nullable ICallStackElement symbolKeyElement) {
// return Collections.emptyList();
// }
}