Class ReplacingVisitor<T extends Visitable>
- java.lang.Object
-
- org.linuxforhealth.fhir.model.visitor.DefaultVisitor
-
- org.linuxforhealth.fhir.model.visitor.CopyingVisitor<T>
-
- org.linuxforhealth.fhir.path.util.ReplacingVisitor<T>
-
- All Implemented Interfaces:
Visitor
class ReplacingVisitor<T extends Visitable> extends CopyingVisitor<T>
-
-
Field Summary
-
Fields inherited from class org.linuxforhealth.fhir.model.visitor.DefaultVisitor
visitChildren
-
-
Constructor Summary
Constructors Constructor Description ReplacingVisitor(Visitable parent, java.lang.String elementName, java.lang.String pathToReplace, Visitable newValue)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
visit(java.lang.String elementName, int index, Visitable value)
Subclasses can override this method to provide a default action for all visit methods.-
Methods inherited from class org.linuxforhealth.fhir.model.visitor.CopyingVisitor
convertToCodeSubtype, delete, doVisitEnd, doVisitEnd, doVisitListEnd, doVisitListStart, doVisitStart, doVisitStart, getBuilder, getList, getPath, getResult, markDirty, markListDirty, postVisit, postVisit, replace, replace, reset, visitEnd, visitEnd, visitEnd, visitStart, visitStart, visitStart
-
Methods inherited from class org.linuxforhealth.fhir.model.visitor.DefaultVisitor
preVisit, preVisit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit
-
-
-
-
Method Detail
-
visit
public boolean visit(java.lang.String elementName, int index, Visitable value)
Description copied from class:DefaultVisitor
Subclasses can override this method to provide a default action for all visit methods.- Specified by:
visit
in interfaceVisitor
- Overrides:
visit
in classDefaultVisitor
- Returns:
- whether to visit the children of this resource; returns the value of the
visitChildren
boolean by default
-
-