reader.lexer.html
Enum Lexeme.Type
java.lang.Object
java.lang.Enum<Lexeme.Type>
reader.lexer.html.Lexeme.Type
- All Implemented Interfaces:
- java.io.Serializable, java.lang.Comparable<Lexeme.Type>
- Enclosing class:
- Lexeme
public static enum Lexeme.Type
- extends java.lang.Enum<Lexeme.Type>
These are known used tags for an HTML document.
|
Method Summary |
boolean |
isHTML()
|
static Lexeme.Type |
toType(java.lang.String s)
|
static Lexeme.Type |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. |
static Lexeme.Type[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared. |
| Methods inherited from class java.lang.Enum |
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf |
| Methods inherited from class java.lang.Object |
getClass, notify, notifyAll, wait, wait, wait |
bgcolor
public static final Lexeme.Type bgcolor
body
public static final Lexeme.Type body
br
public static final Lexeme.Type br
color
public static final Lexeme.Type color
eof
public static final Lexeme.Type eof
face
public static final Lexeme.Type face
font
public static final Lexeme.Type font
gt
public static final Lexeme.Type gt
lang
public static final Lexeme.Type lang
lt
public static final Lexeme.Type lt
newline
public static final Lexeme.Type newline
text
public static final Lexeme.Type text
span
public static final Lexeme.Type span
style
public static final Lexeme.Type style
size
public static final Lexeme.Type size
values
public static Lexeme.Type[] values()
- Returns an array containing the constants of this enum type, in
the order they are declared. This method may be used to iterate
over the constants as follows:
for (Lexeme.Type c : Lexeme.Type.values())
System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in
the order they are declared
valueOf
public static Lexeme.Type valueOf(java.lang.String name)
- Returns the enum constant of this type with the specified name.
The string must match exactly an identifier used to declare an
enum constant in this type. (Extraneous whitespace characters are
not permitted.)
- Parameters:
name - the name of the enum constant to be returned.
- Returns:
- the enum constant with the specified name
- Throws:
java.lang.IllegalArgumentException - if this enum type has no constant
with the specified name
java.lang.NullPointerException - if the argument is null
toType
public static Lexeme.Type toType(java.lang.String s)
isHTML
public boolean isHTML()