Oracle Fusion Middleware Java API Reference for Oracle Extension SDK Reference
11g Release 1 (11.1.1.7.0)

E13403-08

oracle.javatools.parser.html
Interface HTMLTokens

All Known Implementing Classes:
HTMLLexer

public interface HTMLTokens

The 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.

See Also:
LexerToken, HTMLLexer

Field Summary
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.
 

Field Detail

TK_HTML_TAG

static final int TK_HTML_TAG
Constant for an HTML tag which is not a comment.

See Also:
Constant Field Values

TK_HTML_COMMENT

static final int TK_HTML_COMMENT
Constant for a HTML comment. For example, the following is an HTML comment:

   <!-- a comment -->
 

See Also:
Constant Field Values

TK_HTML_SCRIPT

static final int TK_HTML_SCRIPT
Constant for script content. This is includes the the <script>, </script> tags, and any text between. The document renderer requires that these be recognized as a single token in order to work properly.

See Also:
Constant Field Values

TK_HTML_STYLE

static final int TK_HTML_STYLE
Constant for style content. This is includes the the <style>, </style> tags, and any text between. The document renderer requires that these be recognized as a single token in order to work properly.

See Also:
Constant Field Values

TK_HTML_TEXT

static final int TK_HTML_TEXT
Constant for text content

See Also:
Constant Field Values

TK_HTML_DOCUMENT_TYPE

static final int TK_HTML_DOCUMENT_TYPE
Constant for HTML Document Type

See Also:
Constant Field Values

TK_HTML_PROCESSING_INSTRUCTION

static final int TK_HTML_PROCESSING_INSTRUCTION
Constant for HTML Processing Instruction

See Also:
Constant Field Values

TK_JSP_DIRECTIVE

static final int TK_JSP_DIRECTIVE
Constant for a JSP directive (such as a page directive). For example, the following is a JSP directive:

   <%@ directive {attr_name=attr_value} %>
 

See Also:
Constant Field Values

TK_JSP_SCRIPLET

static final int TK_JSP_SCRIPLET
Constant for a JSP scriplet (with Java code.) For example, the following is a JSP scriplet:

   <% if ( i == 5 ) %>
 

See Also:
Constant Field Values

TK_JSP_DECLARATION

static final int TK_JSP_DECLARATION
Constant for a JSP declaration tag. For example, the following is a JSP declaration tag:

   <%! int i = 0; %>
 

See Also:
Constant Field Values

TK_JSP_EXPRESSION

static final int TK_JSP_EXPRESSION
Constant for a JSP expression tag. For example, the following is a JSP expression tag:

   <%= int i = 0; %>
 

See Also:
Constant Field Values

TK_JSP_COMMENT

static final int TK_JSP_COMMENT
Constant for a JSP comment. For example, the following is a JSP comment:

   <%-- this is a comment --%>
 

See Also:
Constant Field Values

TK_PHP_TAG

@Deprecated
static final int TK_PHP_TAG
Deprecated. Recognizing php tokens in the HTMLLexer will be desupported.
Constant for a PHP tag. For example, the following is a PHP tag:

   <?php echo( "Hello!" ); ?>
 

See Also:
Constant Field Values

TK_PHP_ASPTAG

@Deprecated
static final int TK_PHP_ASPTAG
Deprecated. Recognizing php tokens in the HTMLLexer will be desupported.
Constant for an ASP-style PHP tag. For example:
   <% echo( "Hello!" ); %>
 

See Also:
Constant Field Values

Oracle Fusion Middleware Java API Reference for Oracle Extension SDK Reference
11g Release 1 (11.1.1.7.0)

E13403-08

Copyright © 1997, 2013, Oracle. All rights reserved.