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

node Block

The block to inspect.

Returns

bool

true if the block is of interest; otherwise, false.

Visit(Block)

Visits a block.

public Block Visit(Block node)

Parameters

node Block

The block to visit.

Returns

Block

The transformed block.

VisitInteresting(Block)

Visits a block that is considered interesting.

protected abstract Block VisitInteresting(Block node)

Parameters

node Block

The 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

node Block

The block to visit.

Returns

Block

The transformed block.