public interface HTMLTokens
HTMLTokens
interface defines the constants for the various tokens of the HTML language. Currently, only two token types are differentiated, regular HTML tags, and HTML comments. No tokens are generated for plain text.LexerToken
, HTMLLexer
Modifier and Type | Field and Description |
---|---|
static int |
TK_HTML_COMMENT
Constant for a HTML comment.
|
static int |
TK_HTML_DOCUMENT_TYPE
Constant for HTML Document Type
|
static int |
TK_HTML_PROCESSING_INSTRUCTION
Constant for HTML Processing Instruction
|
static int |
TK_HTML_SCRIPT
Constant for script content.
|
static int |
TK_HTML_STYLE
Constant for style content.
|
static int |
TK_HTML_TAG
Constant for an HTML tag which is not a comment.
|
static int |
TK_HTML_TEXT
Constant for text content
|
static int |
TK_JSP_COMMENT
Constant for a JSP comment.
|
static int |
TK_JSP_DECLARATION
Constant for a JSP declaration tag.
|
static int |
TK_JSP_DIRECTIVE
Constant for a JSP directive (such as a page directive).
|
static int |
TK_JSP_EXPRESSION
Constant for a JSP expression tag.
|
static int |
TK_JSP_SCRIPLET
Constant for a JSP scriplet (with Java code.) For example, the following is a JSP scriplet:
|
static int |
TK_PHP_ASPTAG
Deprecated.
Recognizing php tokens in the HTMLLexer will be desupported.
|
static int |
TK_PHP_TAG
Deprecated.
Recognizing php tokens in the HTMLLexer will be desupported.
|
static final int TK_HTML_TAG
static final int TK_HTML_COMMENT
<!-- a comment -->
static final int TK_HTML_SCRIPT
static final int TK_HTML_STYLE
static final int TK_HTML_TEXT
static final int TK_HTML_DOCUMENT_TYPE
static final int TK_HTML_PROCESSING_INSTRUCTION
static final int TK_JSP_DIRECTIVE
<%@ directive {attr_name=attr_value} %>
static final int TK_JSP_SCRIPLET
<% if ( i == 5 ) %>
static final int TK_JSP_DECLARATION
<%! int i = 0; %>
static final int TK_JSP_EXPRESSION
<%= int i = 0; %>
static final int TK_JSP_COMMENT
<%-- this is a comment --%>
@Deprecated static final int TK_PHP_TAG
<?php echo( "Hello!" ); ?>
@Deprecated static final int TK_PHP_ASPTAG
<% echo( "Hello!" ); %>