import java.util.Set;
import org.eclipse.jdt.annotation.Nullable;
-import org.eclipse.tracecompass.ctf.core.CTFReaderException;
+import org.eclipse.tracecompass.ctf.core.CTFException;
import org.eclipse.tracecompass.ctf.core.event.io.BitBuffer;
import org.eclipse.tracecompass.ctf.core.event.scope.IDefinitionScope;
return this.getContainerType().getAlignment();
}
- /**
- * @since 3.0
- */
@Override
public int getMaximumSize() {
return fContainerType.getMaximumSize();
// Operations
// ------------------------------------------------------------------------
- /**
- * @since 3.0
- */
@Override
- public EnumDefinition createDefinition(@Nullable IDefinitionScope definitionScope, String fieldName, BitBuffer input) throws CTFReaderException {
+ public EnumDefinition createDefinition(@Nullable IDefinitionScope definitionScope, String fieldName, BitBuffer input) throws CTFException {
alignRead(input);
IntegerDefinition value = getContainerType().createDefinition(definitionScope, fieldName, input);
return new EnumDefinition(this, definitionScope, fieldName, value);
* Gets a set of labels of the enum
*
* @return A set of labels of the enum, can be empty but not null
- * @since 3.0
*/
public Set<String> getLabels() {
return Collections.unmodifiableSet(fLabels);