/** * Obtain a flattened represented of this {@link MaskTree}, represented as a Map from field path to * {@link MaskOperation}. * @return Map representing flattened MaskTree. */ public Map<PathSpec, MaskOperation> getOperations() { Map<PathSpec, MaskOperation> result = new HashMap<PathSpec, MaskOperation>(); getOperationsImpl(_representation, PathSpec.emptyPath(), result); return result; }