Class SnapshotUtils
- java.lang.Object
-
- com.intergral.deep.tests.snapshot.SnapshotUtils
-
public final class SnapshotUtils extends Object
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interface
SnapshotUtils.IVariableScan
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static String
attributeByName(String name, com.intergral.deep.proto.tracepoint.v1.Snapshot snapshot)
static SnapshotUtils.IVariableScan
findVarByName(String name, com.intergral.deep.proto.tracepoint.v1.Snapshot snapshot)
Scan a snapshot for a variable with the given name.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.static SnapshotUtils.IVariableScan
findVarByPath(String path, com.intergral.deep.proto.tracepoint.v1.Snapshot snapshot)
-
-
-
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 namesnapshot
- 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 forlocalVars
- 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)
-
findVarByPath
public static SnapshotUtils.IVariableScan findVarByPath(String path, com.intergral.deep.proto.tracepoint.v1.Snapshot snapshot)
-
-