Package org.xembly
Interface Directive
public interface Directive
Directive.
Use Directives
to create a collection of them. You don't
need to use this interface directly and make instances of it. Everything
is done through Directives
and Xembler
.
- Since:
- 0.1
-
Nested Class Summary
Modifier and TypeInterfaceDescriptionstatic interface
Cursor.static interface
Stack. -
Method Summary
Modifier and TypeMethodDescriptionexec
(Node dom, Directive.Cursor cursor, Directive.Stack stack) Execute it in the given document with current position at the given node.
-
Method Details
-
exec
Directive.Cursor exec(Node dom, Directive.Cursor cursor, Directive.Stack stack) throws ImpossibleModificationException Execute it in the given document with current position at the given node.- Parameters:
dom
- Documentcursor
- Nodes we're currently atstack
- Execution stack- Returns:
- New current nodes
- Throws:
ImpossibleModificationException
- If can't do it
-