public interface CommandStream
This interface defines a stream to which Command
s are pushed during the compilation of a HTL script by the SightlyCompiler
. Depending on how a consumer wants to use the stream there are several
options:
CommandHandler
can be attached to the stream; the stream,
in turn, will notify the handler for every command that has been pushed;CommandHandler
, as the
Command
s that were written to the stream can be replayed in the exact order in which they have been pushed.Modifier and Type | Method and Description |
---|---|
void |
addHandler(CommandHandler handler)
Registers a listening
CommandHandler to the stream. |
java.util.List<Command> |
getCommands()
Returns the
List of commands that were written into this stream. |
void addHandler(CommandHandler handler)
CommandHandler
to the stream. The CommandHandler
will be notified for every new Command
pushed to this stream.handler
- the handler to attach to this streamjava.util.List<Command> getCommands()
List
of commands that were written into this stream."Copyright © 2010 - 2020 Adobe Systems Incorporated. All Rights Reserved"