Class MarkupVisitor
- Namespace
- Pixie.Transforms
- Assembly
- Pixie.dll
Minimal visitor base for block-level transforms.
public abstract class MarkupVisitor
- Inheritance
-
MarkupVisitor
- Inherited Members
Constructors
MarkupVisitor()
protected MarkupVisitor()
Methods
IsOfInterest(Block)
Determines whether a block should be handled by VisitInteresting(Block).
protected abstract bool IsOfInterest(Block node)
Parameters
nodeBlockThe block to inspect.
Returns
- bool
trueif the block is of interest; otherwise,false.
Visit(Block)
Visits a block.
public Block Visit(Block node)
Parameters
nodeBlockThe block to visit.
Returns
- Block
The transformed block.
VisitInteresting(Block)
Visits a block that is considered interesting.
protected abstract Block VisitInteresting(Block node)
Parameters
nodeBlockThe block to visit.
Returns
- Block
The transformed block.
VisitUninteresting(Block)
Visits a block that is not considered interesting.
protected virtual Block VisitUninteresting(Block node)
Parameters
nodeBlockThe block to visit.
Returns
- Block
The transformed block.