|
|||||||||
| Home >> All >> gnu >> javax >> swing >> text >> html >> parser >> support >> [ low overview ] | PREV CLASS NEXT CLASS | ||||||||
SUMMARY: JAVADOC | SOURCE | DOWNLOAD | NESTED | FIELD | CONSTR | METHOD |
DETAIL: FIELD | CONSTR | METHOD | ||||||||
gnu.javax.swing.text.html.parser.support.low
Class Constants

java.lang.Objectgnu.javax.swing.text.html.parser.support.low.Constants
- Direct Known Subclasses:
- ReaderTokenizer
- public class Constants
- extends java.lang.Object
The parser constants and operations, directly related to the parser constants.
| Field Summary | |
static int |
AP
Quoting sign. |
static java.util.BitSet |
bDIGIT
Digits. |
static int |
BEGIN
Start of HTML token. |
static java.util.BitSet |
bLETTER
All letters, used in HTML names. |
static java.util.BitSet |
bLINEBREAK
Both line breaks. |
static java.util.BitSet |
bNAME
Valid name characters. |
static java.util.BitSet |
bQUOTING
Both quoting characters. |
static java.util.BitSet |
bSINGLE_CHAR_TOKEN
All single char tokens. |
static java.util.BitSet |
bSPECIAL
Non letters and non numbers, allowed in HTML names. |
static java.util.BitSet |
bWHITESPACE
All whitespace. |
static pattern |
COMMENT_END
Comment closing sequence |
static pattern |
COMMENT_OPEN
Comment opening sequence. |
static pattern |
COMMENT_TRIPLEDASH_END
Special case ---> (also is treated as end of comment). |
static int |
DOUBLE_DASH
Double dash (--) |
static int |
END
End of HTML token. |
static int |
ENTITY
Named or numeric entity, |
static int |
ENTITY_NAMED
Named entity. |
static int |
ENTITY_NUMERIC
Numeric entity. |
static int |
EOF
End of file. |
static int |
EQ
Equals sign. |
(package private) static char |
ETX
The UNICODE "end of text" control code |
static int |
EXCLAMATION
Exclamation (indicates SGML or comment). |
static int |
NUMTOKEN
Sequence of valid name characters (can start from digit). |
static int |
OTHER
All other tokens. |
static int |
QUOT
Quoting sign. |
static int |
SCRIPT
The SCRIPT tag (needs special handling). |
static pattern |
SCRIPT_CLOSE
SCRIPT element closing pattern. |
static pattern |
SCRIPT_OPEN
SCRIPT element heading pattern. |
static pattern |
SGML
SGML element heading pattern. |
static int |
SLASH
Slash (indicates closing tag). |
static int |
STYLE
The STYLE tag (needs special handling). |
static pattern |
STYLE_CLOSE
STYLE element closing pattern. |
static pattern |
STYLE_OPEN
STYLE element heading pattern. |
static pattern |
TAG
Ordinary HTML tag heading pattern. |
static int |
WS
HTML whitespace. |
| Constructor Summary | |
Constants()
|
|
| Method Summary | |
Token |
endMatches(Buffer b)
Verifies if one of the tokens matches the end of string buffer. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
BEGIN
public static final int BEGIN
- Start of HTML token.
- See Also:
- Constant Field Values
END
public static final int END
- End of HTML token.
- See Also:
- Constant Field Values
EXCLAMATION
public static final int EXCLAMATION
- Exclamation (indicates SGML or comment).
- See Also:
- Constant Field Values
SLASH
public static final int SLASH
- Slash (indicates closing tag).
- See Also:
- Constant Field Values
EQ
public static final int EQ
- Equals sign.
- See Also:
- Constant Field Values
AP
public static final int AP
- Quoting sign.
- See Also:
- Constant Field Values
QUOT
public static final int QUOT
- Quoting sign.
- See Also:
- Constant Field Values
DOUBLE_DASH
public static final int DOUBLE_DASH
- Double dash (--)
- See Also:
- Constant Field Values
STYLE
public static final int STYLE
- The STYLE tag (needs special handling).
- See Also:
- Constant Field Values
SCRIPT
public static final int SCRIPT
- The SCRIPT tag (needs special handling).
- See Also:
- Constant Field Values
WS
public static final int WS
- HTML whitespace.
- See Also:
- Constant Field Values
ENTITY
public static final int ENTITY
- Named or numeric entity,
- See Also:
- Constant Field Values
NUMTOKEN
public static final int NUMTOKEN
- Sequence of valid name characters (can start from digit).
- See Also:
- Constant Field Values
COMMENT_OPEN
public static final pattern COMMENT_OPEN
- Comment opening sequence.
COMMENT_END
public static final pattern COMMENT_END
- Comment closing sequence
COMMENT_TRIPLEDASH_END
public static final pattern COMMENT_TRIPLEDASH_END
- Special case ---> (also is treated as end of comment).
STYLE_OPEN
public static final pattern STYLE_OPEN
- STYLE element heading pattern.
SCRIPT_OPEN
public static final pattern SCRIPT_OPEN
- SCRIPT element heading pattern.
SGML
public static final pattern SGML
- SGML element heading pattern.
SCRIPT_CLOSE
public static final pattern SCRIPT_CLOSE
- SCRIPT element closing pattern.
STYLE_CLOSE
public static final pattern STYLE_CLOSE
- STYLE element closing pattern.
TAG
public static final pattern TAG
- Ordinary HTML tag heading pattern.
OTHER
public static final int OTHER
- All other tokens.
- See Also:
- Constant Field Values
ETX
static final char ETX
- The UNICODE "end of text" control code
- See Also:
- Constant Field Values
EOF
public static final int EOF
- End of file.
- See Also:
- Constant Field Values
bSINGLE_CHAR_TOKEN
public static final java.util.BitSet bSINGLE_CHAR_TOKEN
- All single char tokens.
bSPECIAL
public static final java.util.BitSet bSPECIAL
- Non letters and non numbers, allowed in HTML names.
bLETTER
public static final java.util.BitSet bLETTER
- All letters, used in HTML names.
bDIGIT
public static final java.util.BitSet bDIGIT
- Digits.
bLINEBREAK
public static final java.util.BitSet bLINEBREAK
- Both line breaks.
bWHITESPACE
public static final java.util.BitSet bWHITESPACE
- All whitespace.
bQUOTING
public static final java.util.BitSet bQUOTING
- Both quoting characters.
bNAME
public static final java.util.BitSet bNAME
- Valid name characters.
ENTITY_NAMED
public static final int ENTITY_NAMED
- Named entity.
- See Also:
- Constant Field Values
ENTITY_NUMERIC
public static final int ENTITY_NUMERIC
- Numeric entity.
- See Also:
- Constant Field Values
| Constructor Detail |
Constants
public Constants()
| Method Detail |
endMatches
public Token endMatches(Buffer b)
- Verifies if one of the tokens matches the end of string
buffer. The last character in the string buffer is the
"future character", some tokens needs to verify it the
token does not continue "towards the future". If the token
matches, it matches till "pre-last" character in the buffer.
|
|||||||||
| Home >> All >> gnu >> javax >> swing >> text >> html >> parser >> support >> [ low overview ] | PREV CLASS NEXT CLASS | ||||||||
SUMMARY: JAVADOC | SOURCE | DOWNLOAD | NESTED | FIELD | CONSTR | METHOD |
DETAIL: FIELD | CONSTR | METHOD | ||||||||
JAVADOC
gnu.javax.swing.text.html.parser.support.low.Constants