|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD | ||||||||
java.lang.Objectjava.lang.Enum<HtmlTokenType>
com.cburch.editor.scanners.HtmlTokenType
public enum HtmlTokenType
Defines the different categories of tokens that might be encountered in an HTML file.
| Enum Constant Summary | |
|---|---|
ANCHOR_TEXT
Text within an anchor element. |
|
COMMENT
A comment. |
|
DEPRECATED_TAG
A deprecated tag. |
|
ERROR
A sequence of invalid characters. |
|
TAG
A recognized, valid tag. |
|
TEXT
Text within a regular element. |
|
UNKNOWN_TAG
An unknown tag. |
|
| Method Summary | |
|---|---|
javax.swing.text.AttributeSet |
getAttributeSet()
Return the style in which tokens of this type should be drawn. |
java.lang.String |
getDescriptor()
Returns a terse description of what sort of token this corresponds to. |
static HtmlTokenType |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. |
static HtmlTokenType[] |
values()
Returns an array containing the constants of this enum type, in the order they're declared. |
| Methods inherited from class java.lang.Enum |
|---|
compareTo, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf |
| Methods inherited from class java.lang.Object |
|---|
getClass, notify, notifyAll, wait, wait, wait |
| Enum Constant Detail |
|---|
public static final HtmlTokenType TAG
public static final HtmlTokenType DEPRECATED_TAG
public static final HtmlTokenType UNKNOWN_TAG
public static final HtmlTokenType TEXT
public static final HtmlTokenType ANCHOR_TEXT
public static final HtmlTokenType COMMENT
public static final HtmlTokenType ERROR
| Method Detail |
|---|
public static final HtmlTokenType[] values()
for(HtmlTokenType c : HtmlTokenType.values())
System.out.println(c);
public static HtmlTokenType valueOf(java.lang.String name)
name - the name of the enum constant to be returned.
java.lang.IllegalArgumentException - if this enum type has no constant
with the specified namepublic java.lang.String getDescriptor()
public javax.swing.text.AttributeSet getAttributeSet()
getAttributeSet in interface TokenType
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD | ||||||||