OptionaldefaultContext: TransformContextOptionaldefaultNodePreVisitor: DefaultNodePreVisitor<Sparql11Nodes>Protected ReadonlydefaultProtecteddefaultProtectedmaxOptionalnewDefaultContext: TransformContextOptionalnewDefaultNodePreVisitor: DefaultNodePreVisitor<Sparql11Nodes>ProtectedcloneTransform a single node (Typed).
the object from which we will start the transformation, potentially visiting and transforming its descendants along the way.
a dictionary mapping the various node types to objects optionally containing preVisitor and transformer. The preVisitor allows you to provide TransformContext for the current object, altering how it will be transformed. The transformer allows you to manipulate the copy of the current object, and expects you to return the value that should take the current objects place.
the result of transforming the requested descendant operations (based on the preVisitor) using a transformer that works its way back up from the descendant to the startObject.
Transform a single node (Typed). Similar to this.transformNode but also allowing you to target the subTypes.
the object from which we will start the transformation, potentially visiting and transforming its descendants along the way.
a dictionary mapping the various operation types to objects optionally containing preVisitor and transformer. The preVisitor allows you to provide TransformContext for the current object, altering how it will be transformed. The transformer allows you to manipulate the copy of the current object, and expects you to return the value that should take the current objects place.
Same as nodeCallBacks but using an additional level of indirection to indicate the subType.
the result of transforming the requested descendant operations (based on the preVisitor) using a transformer that works its way back up from the descendant to the startObject.
Recursively transforms all objects that are not arrays. Mapper is called on deeper objects first.
object to start iterating from
mapper to transform the various objects - argument is a copy of the original
OptionalpreVisitor: (orig: object) => TransformContextcallback that is evaluated before iterating deeper. If continues is false, we do not iterate deeper, current object is still mapped. - default: true If shortcut is true, we do not iterate deeper, nor do we branch out, this mapper will be the last one called.
Visit a selected subTree given a startObject, steering the visits based on Typed nodes. Will first call the preVisitor on the project and notice it should not iterate on its descendants. It then visits the project, and the outermost distinct, printing '21'. The pre-visitor visits starting from the root, going deeper, while the actual visitor goes in reverse.
the object from which we will start visiting, potentially visiting its descendants along the way.
a dictionary mapping the various operation types to objects optionally containing preVisitor and visitor. The preVisitor allows you to provide VisitContext for the current object, altering how it will be visited. The visitor allows you to visit the object from deepest to the outermost object. This is useful if you for example want to manipulate the objects you visit during your visits, similar to this.transformNode.
Visit a selected subTree given a startObject, steering the visits based on Typed nodes. Similar to this.visitNode, but also allowing you to target subTypes. Will call the preVisitor on the outer distinct, then the visitor of the special distinct, followed by the visiting the outer distinct, printing '231'. The pre-visitor visits starting from the root, going deeper, while the actual visitor goes in reverse.
the object from which we will start visiting, potentially visiting its descendants along the way.
a dictionary mapping the various operation types to objects optionally containing preVisitor and visitor. The preVisitor allows you to provide VisitContext for the current object, altering how it will be visited. The visitor allows you to visit the object from deepest to the outermost object. This is useful if you for example want to manipulate the objects you visit during your visits, similar to mapOperation.
Same as nodeCallBacks but using an additional level of indirection to indicate the subType.
Visitor that visits all objects. Visits deeper objects first.
OptionalpreVisitor: (orig: object) => VisitContext
Function to shallow clone any type.