DiffRoot

public final class DiffRoot

Class that holds one differentiation root point. The unit name and each var name are “identifier“‘s. Each “identifier” is in fact a TapList of String’s that describes the path to the object starting from the root namespace.

Constructors

DiffRoot

public DiffRoot(Unit unit, TapList<String> unitPathName, TapList<DiffPattern> diffPatterns)

Methods

appendDiffPattern

public void appendDiffPattern(DiffPattern pattern)

collectUnits

public static TapList<Unit> collectUnits(TapList<DiffRoot> diffRoots)
Returns

the lists of all Units in the given list of DiffRoot’s.

diffPatterns

public TapList<DiffPattern> diffPatterns()

findUnit

public static DiffRoot findUnit(TapList<DiffRoot> diffRoots, Unit unit)
Returns

the DiffRoot in the given list “diffRoots” that deals with the Unit “unit” or null if not found.

rebuildIdentifier

public static String rebuildIdentifier(TapList<String> identifierElements)

setUnit

public void setUnit(Unit unit)
Parameters
  • unit – the differentiation root unit.

toString

public String toString()

unit

public Unit unit()
Returns

the differentiation root unit.

unitPathName

public TapList<String> unitPathName()