analysis.lami: Implementation of LAMI plugins
[deliverable/tracecompass.git] / analysis / org.eclipse.tracecompass.analysis.lami.core / src / org / eclipse / tracecompass / internal / provisional / analysis / lami / core / types / LamiSystemCall.java
1 /*******************************************************************************
2 * Copyright (c) 2016 EfficiOS Inc., Philippe Proulx
3 *
4 * All rights reserved. This program and the accompanying materials are
5 * made available under the terms of the Eclipse Public License v1.0 which
6 * accompanies this distribution, and is available at
7 * http://www.eclipse.org/legal/epl-v10.html
8 *******************************************************************************/
9
10 package org.eclipse.tracecompass.internal.provisional.analysis.lami.core.types;
11
12 import org.eclipse.jdt.annotation.Nullable;
13
14 /**
15 * Data element for LAMI system call objects.
16 *
17 * @author Philippe Proulx
18 */
19 public class LamiSystemCall extends LamiString {
20
21 private final String fString;
22
23 /**
24 * Constructor
25 *
26 * @param value
27 * The 'value' field of the system call, typically its name
28 */
29 public LamiSystemCall(String value) {
30 super(value);
31
32 if (value.endsWith("()")) { //$NON-NLS-1$
33 fString = value;
34 } else {
35 fString = value + "()"; //$NON-NLS-1$
36 }
37 }
38
39 @Override
40 public @Nullable String toString() {
41 return fString;
42 }
43 }
This page took 0.034047 seconds and 5 git commands to generate.