Visitor Topic

Classes that implement the visitor pattern for traversing the Sass AST. Callers can either implement interfaces like StatementVisitor from scratch to handle all Sass node types, or extend helper classes like RecursiveStatementVisitor which traverse the entire AST to handle only specific nodes.

Classes

ExpressionVisitor<T> Visitor
An interface for visitors that traverse SassScript expressions. [...]
RecursiveAstVisitor Visitor
A visitor that recursively traverses each statement and expression in a Sass AST. [...]
RecursiveStatementVisitor Visitor
A visitor that recursively traverses each statement in a Sass AST. [...]
StatementSearchVisitor<T> Visitor
A StatementVisitor whose visit* methods default to returning null, but which returns the first non-null value returned by any method. [...]
StatementVisitor<T> Visitor
An interface for visitors that traverse Sass statements. [...]