| simple.page.translate.Parser simple.page.translate.Token simple.page.translate.Declaration
Declaration | class Declaration extends Token (Code) | | The Declaration object is used to parse declarations
from the JSP source. Declarations are member functions and fields
that will be added at the head of the generates source object.
<%!
declaration
%>
The above declaration token is parsed by this object. This will
basically remove the beginning and end tags an insert the
remainder, that is, the declaration, into the definition object.
author: Niall Gallagher |
Constructor Summary | |
public | Declaration() Constructor for the Declaration token. | public | Declaration(String token) Constructor for the Declaration token. |
Method Summary | |
protected void | init() This will clear the declaration token so that the parse can be
reused by the builder. | protected void | parse() This is a very simple parse method which basically extracts the
begining and end values from the token. | public void | process(Definition source, Builder builder) This method will supply code to the document definition that
will allow a declaration to be used by the page. |
Declaration | public Declaration()(Code) | | Constructor for the Declaration token. This will
create a buffer, which can be used to accumulate the data
extracted from the supplied declaration token.
|
Declaration | public Declaration(String token)(Code) | | Constructor for the Declaration token. This will
create a buffer, which can be used to accumulate the data
extracted from the supplied declaration token before parsing.
Parameters: token - this is the declaration token to be parsed |
init | protected void init()(Code) | | This will clear the declaration token so that the parse can be
reused by the builder. In practice this method just satisfies
the contract of the token so that this object is not abstract.
|
parse | protected void parse()(Code) | | This is a very simple parse method which basically extracts the
begining and end values from the token. For instance this will
remove "<%!" and "%>" from the token supplied.
|
process | public void process(Definition source, Builder builder)(Code) | | This method will supply code to the document definition that
will allow a declaration to be used by the page. The data
inserted into the definition will generated in the class.
Parameters: source - this is the source to push the code into Parameters: builder - this is the builder driving the process |
|
|