| /******************************************************************************* |
| * Copyright (c) 2016 EfficiOS Inc., Philippe Proulx |
| * |
| * All rights reserved. This program and the accompanying materials are |
| * made available under the terms of the Eclipse Public License 2.0 which |
| * accompanies this distribution, and is available at |
| * https://www.eclipse.org/legal/epl-2.0/ |
| * |
| * SPDX-License-Identifier: EPL-2.0 |
| *******************************************************************************/ |
| |
| package org.eclipse.tracecompass.internal.provisional.analysis.lami.core.types; |
| |
| import org.eclipse.jdt.annotation.Nullable; |
| |
| /** |
| * Data element for LAMI system call objects. |
| * |
| * @author Philippe Proulx |
| */ |
| public class LamiSystemCall extends LamiString { |
| |
| private final String fString; |
| |
| /** |
| * Constructor |
| * |
| * @param value |
| * The 'value' field of the system call, typically its name |
| */ |
| public LamiSystemCall(String value) { |
| super(value); |
| |
| if (value.endsWith("()")) { //$NON-NLS-1$ |
| fString = value; |
| } else { |
| fString = value + "()"; //$NON-NLS-1$ |
| } |
| } |
| |
| @Override |
| public @Nullable String toString() { |
| return fString; |
| } |
| } |