SourceInfo (Java Application API for IBM Streams)
Date: 2020-08-07

com.ibm.streamsx.topology.spi.builder

## Interface SourceInfo

-     public interface SourceInfo

  Add the ability to add source location information to an operator invocation.

- - ### Field Summary

    Fields
    Modifier and Type | Field and Description
    --- | ---
    `static java.lang.String` | `SOURCE_LOCATIONS`

  - ### Method Summary

    All Methods Static Methods Default Methods
    Modifier and Type | Method and Description
    --- | ---
    `static void` | `addSourceInfo(com.google.gson.JsonObject invokeInfo, java.lang.Class<?> calledClass)` Add source level information to invokeInfo as the property "sourcelocation".

- - ### Field Detail

    - #### SOURCE_LOCATIONS

          static final java.lang.String SOURCE_LOCATIONS

      See Also:
        Constant Field Values

  - ### Method Detail

    - #### addSourceInfo

          static void addSourceInfo(com.google.gson.JsonObject invokeInfo,
                                    java.lang.Class<?> calledClass)

      Add source level information to invokeInfo as the property "sourcelocation". The current stack is "walked" upwards to find the last instance of calledClass. The frame including called class is taken as the 'api.method' while the caller is taken as user code.
      Parameters:
        `invokeInfo` - Object holding operator invoke information.
        `calledClass` - API implementation class being called.