Class SnapshotUtils


  • public final class SnapshotUtils
    extends Object
    • Method Detail

      • findVarByName

        public static SnapshotUtils.IVariableScan findVarByName​(String name,
                                                                com.intergral.deep.proto.tracepoint.v1.Snapshot snapshot)
        Scan a snapshot for a variable with the given name.
        Parameters:
        name - the variable name
        snapshot - the snapshot
        Returns:
        a SnapshotUtils.IVariableScan
      • findVarByName

        public static SnapshotUtils.IVariableScan findVarByName​(String name,
                                                                Collection<com.intergral.deep.proto.tracepoint.v1.VariableID> localVars,
                                                                Map<String,​com.intergral.deep.proto.tracepoint.v1.Variable> lookup)
        Scan a snapshot for a variable with a given name.
        Parameters:
        name - the name to look for
        localVars - the variables to scan (e.g. the local frame, or the children of another var)
        lookup - the lookup from the snapshot to get the var value from
        Returns:
        a SnapshotUtils.IVariableScan
      • attributeByName

        public static String attributeByName​(String name,
                                             com.intergral.deep.proto.tracepoint.v1.Snapshot snapshot)