public static enum Context.State extends Enum<Context.State>
| Enum Constant and Description |
|---|
CSS
In CSS content outside a comment, string, or URI.
|
CSS_COMMENT
In CSS inside a comment.
|
CSS_DQ_STRING
In CSS inside a double quoted string.
|
CSS_DQ_URI
In CSS in a URI terminated by the first double quote.
|
CSS_SQ_STRING
In CSS inside a single quoted string.
|
CSS_SQ_URI
In CSS in a URI terminated by the first single quote.
|
CSS_URI
In CSS in a URI terminated by the first close parenthesis.
|
ERROR
Not inside any valid HTML/CSS/JS construct.
|
HTML_ATTRIBUTE_NAME
Inside an HTML attribute name.
|
HTML_BEFORE_ATTRIBUTE_VALUE
Following an equals sign (=) after an attribute name in an HTML tag.
|
HTML_BEFORE_TAG_NAME
Just before a tag name.
|
HTML_COMMENT
Inside an HTML comment.
|
HTML_NORMAL_ATTR_VALUE
Inside a normal (non-CSS, JS, or URI) HTML attribute value.
|
HTML_PCDATA
Outside an HTML tag, directive, or comment.
|
HTML_RCDATA
Inside an element whose content is RCDATA where text and entities can appear but where nested
elements cannot.
|
HTML_TAG
Before an HTML attribute or the end of a tag.
|
HTML_TAG_NAME
Inside a tag name.
|
JS
In JavaScript, outside a comment, string, or Regexp literal.
|
JS_BLOCK_COMMENT
In JavaScript inside a block comment.
|
JS_DQ_STRING
In JavaScript inside a double quoted string.
|
JS_LINE_COMMENT
In JavaScript inside a line comment.
|
JS_REGEX
In JavaScript inside a regular expression literal.
|
JS_SQ_STRING
In JavaScript inside a single quoted string.
|
TEXT
Plain text; no escaping.
|
URI
In a URI, which may or may not be in an HTML attribute.
|
| Modifier and Type | Method and Description |
|---|---|
static Context.State |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static Context.State[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Context.State HTML_PCDATA
public static final Context.State HTML_RCDATA
<title> and <textarea> fall into this category since they
cannot contain nested elements in HTML.public static final Context.State HTML_BEFORE_TAG_NAME
public static final Context.State HTML_TAG_NAME
public static final Context.State HTML_TAG
public static final Context.State HTML_ATTRIBUTE_NAME
public static final Context.State HTML_BEFORE_ATTRIBUTE_VALUE
public static final Context.State HTML_COMMENT
public static final Context.State HTML_NORMAL_ATTR_VALUE
public static final Context.State CSS
public static final Context.State CSS_COMMENT
public static final Context.State CSS_DQ_STRING
public static final Context.State CSS_SQ_STRING
public static final Context.State CSS_URI
public static final Context.State CSS_DQ_URI
public static final Context.State CSS_SQ_URI
public static final Context.State JS
public static final Context.State JS_LINE_COMMENT
public static final Context.State JS_BLOCK_COMMENT
public static final Context.State JS_DQ_STRING
public static final Context.State JS_SQ_STRING
public static final Context.State JS_REGEX
public static final Context.State URI
public static final Context.State TEXT
public static final Context.State ERROR
public static Context.State[] values()
for (Context.State c : Context.State.values()) System.out.println(c);
public static Context.State valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant with the specified nameNullPointerException - if the argument is null