@Test
public void testParseField_float() {
FloatDefinition fieldDef = (FloatDefinition) fixture.lookupDefinition(FLOAT);
- CtfTmfEventField result = CtfTmfEventField.parseField((IDefinition)fieldDef, "_" + NAME);
+ CtfTmfEventField result = CtfTmfEventField.parseField(fieldDef, "_" + NAME);
assertEquals("test=2.0", result.toString());
}
Bundle-ManifestVersion: 2
Bundle-Name: %Bundle-Name
Bundle-Vendor: %Bundle-Vendor
-Bundle-Version: 2.2.0.qualifier
+Bundle-Version: 3.0.0.qualifier
Bundle-Localization: plugin
Bundle-SymbolicName: org.eclipse.tracecompass.tmf.ctf.core;singleton:=true
Bundle-Activator: org.eclipse.tracecompass.internal.tmf.ctf.core.Activator
import org.eclipse.tracecompass.ctf.core.event.IEventDeclaration;
import org.eclipse.tracecompass.ctf.core.event.IEventDefinition;
import org.eclipse.tracecompass.ctf.core.event.types.ICompositeDefinition;
-import org.eclipse.tracecompass.ctf.core.event.types.IDefinition;
import org.eclipse.tracecompass.ctf.core.trace.ICTFStream;
import org.eclipse.tracecompass.tmf.core.event.ITmfCustomAttributes;
import org.eclipse.tracecompass.tmf.core.event.ITmfEventField;
* of Declaration to native Java types.
*
* @author Alexandre Montplaisir
+ * @since 3.0
*/
@NonNullByDefault
public class CtfTmfEvent extends TmfEvent
return fChannel;
}
- /**
- * Return this event's reference.
- *
- * @return The event's reference
- * @deprecated This method was replaced by {@link #getChannel()}.
- */
- @Deprecated
- public String getReference() {
- return getChannel();
- }
-
/**
* Get the stream Id
*
* some cases it is the same as the actual timestamp.
*
* @return the event unscaled time in long format.
- * @since 2.2
+ * @since 3.0
*/
public long getUnscaledTime() {
return fEvent.getTimestamp();
if (structFields != null) {
if (structFields.getFieldNames() != null) {
for (String fn : structFields.getFieldNames()) {
- fields.add(CtfTmfEventField.parseField((IDefinition) structFields.getDefinition(fn), fn));
+ fields.add(CtfTmfEventField.parseField(structFields.getDefinition(fn), fn));
}
}
}
for (String contextName : structContext.getFieldNames()) {
/* Prefix field name */
String curContextName = CtfConstants.CONTEXT_FIELD_PREFIX + contextName;
- fields.add(CtfTmfEventField.parseField((IDefinition) structContext.getDefinition(contextName), curContextName));
+ fields.add(CtfTmfEventField.parseField(structContext.getDefinition(contextName), curContextName));
}
}
* Get the call site for this event.
*
* @return the call site information, or null if there is none
- * @since 2.2
+ * @since 3.0
*/
@Override
public @Nullable ITmfCallsite getCallsite() {
// Operations
// ------------------------------------------------------------------------
- /**
- * Factory method to instantiate CtfTmfEventField objects.
- *
- * @param fieldDef
- * The CTF Definition of this event field
- * @param fieldName
- * String The name to assign to this field
- * @return The resulting CtfTmfEventField object
- * @deprecated use {@link CtfTmfEventField#parseField(IDefinition, String)}
- */
- @Deprecated
- public static CtfTmfEventField parseField(Definition fieldDef,
- @NonNull String fieldName) {
- return parseField((IDefinition) fieldDef, fieldName);
- }
-
/**
* Factory method to instantiate CtfTmfEventField objects.
*
List<ITmfEventField> list = new ArrayList<>();
/* Recursively parse the fields */
for (String fn : strDef.getFieldNames()) {
- list.add(CtfTmfEventField.parseField((IDefinition) strDef.getDefinition(fn), fn));
+ list.add(CtfTmfEventField.parseField(strDef.getDefinition(fn), fn));
}
field = new CTFStructField(fieldName, list.toArray(new CtfTmfEventField[list.size()]));
* CTF TMF call site information for source code lookup.
*
* @author Patrick Tasse
- * @since 2.2
+ * @since 3.0
*/
public class CtfTmfCallsite extends TmfCallsite {
* @param eventName
* The event name to look for
* @return The best callsite candidate
- * @since 2.2
+ * @since 3.0
*/
public @Nullable CtfTmfCallsite getCallsite(String eventName) {
for (ICTFStream stream : fTrace.getStreams()) {
* @param ip
* The instruction pointer
* @return The closest matching callsite
- * @since 2.2
+ * @since 3.0
*/
public @Nullable CtfTmfCallsite getCallsite(String eventName, long ip) {
CtfTmfCallsite callsite = null;
}
/**
- * @since 2.2
+ * @since 3.0
*/
@Override
public long cyclesToNanos(long cycles) {
}
/**
- * @since 2.2
+ * @since 3.0
*/
@Override
public long nanosToCycles(long nanos) {
}
/**
- * @since 2.2
+ * @since 3.0
*/
@Override
public ITmfTimestamp readStart() {
}
/**
- * @since 2.2
+ * @since 3.0
*/
@Override
public ITmfTimestamp readEnd() {