com.google.clearsilver.jsilver.autoescape
Enum AutoEscapeContext.AutoEscapeState
java.lang.Object
java.lang.Enum<AutoEscapeContext.AutoEscapeState>
com.google.clearsilver.jsilver.autoescape.AutoEscapeContext.AutoEscapeState
- All Implemented Interfaces:
- Serializable, Comparable<AutoEscapeContext.AutoEscapeState>
- Enclosing class:
- AutoEscapeContext
public static enum AutoEscapeContext.AutoEscapeState
- extends Enum<AutoEscapeContext.AutoEscapeState>
Enum representing states of the data being parsed.
This enumeration lists all the states in which autoescaping would have some effect.
HTML
public static final AutoEscapeContext.AutoEscapeState HTML
JS
public static final AutoEscapeContext.AutoEscapeState JS
STYLE
public static final AutoEscapeContext.AutoEscapeState STYLE
JS_UNQUOTED
public static final AutoEscapeContext.AutoEscapeState JS_UNQUOTED
ATTR
public static final AutoEscapeContext.AutoEscapeState ATTR
UNQUOTED_ATTR
public static final AutoEscapeContext.AutoEscapeState UNQUOTED_ATTR
ATTR_URI
public static final AutoEscapeContext.AutoEscapeState ATTR_URI
UNQUOTED_ATTR_URI
public static final AutoEscapeContext.AutoEscapeState UNQUOTED_ATTR_URI
ATTR_URI_START
public static final AutoEscapeContext.AutoEscapeState ATTR_URI_START
UNQUOTED_ATTR_URI_START
public static final AutoEscapeContext.AutoEscapeState UNQUOTED_ATTR_URI_START
ATTR_JS
public static final AutoEscapeContext.AutoEscapeState ATTR_JS
ATTR_UNQUOTED_JS
public static final AutoEscapeContext.AutoEscapeState ATTR_UNQUOTED_JS
UNQUOTED_ATTR_JS
public static final AutoEscapeContext.AutoEscapeState UNQUOTED_ATTR_JS
UNQUOTED_ATTR_UNQUOTED_JS
public static final AutoEscapeContext.AutoEscapeState UNQUOTED_ATTR_UNQUOTED_JS
ATTR_CSS
public static final AutoEscapeContext.AutoEscapeState ATTR_CSS
UNQUOTED_ATTR_CSS
public static final AutoEscapeContext.AutoEscapeState UNQUOTED_ATTR_CSS
values
public static AutoEscapeContext.AutoEscapeState[] 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 (AutoEscapeContext.AutoEscapeState c : AutoEscapeContext.AutoEscapeState.values())
System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in
the order they are declared
valueOf
public static AutoEscapeContext.AutoEscapeState valueOf(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:
IllegalArgumentException
- if this enum type has no constant
with the specified name
NullPointerException
- if the argument is null
getFunctionName
public String getFunctionName()
getEscapeMode
public EscapeMode getEscapeMode()
Copyright © 2010-2012 Google. All Rights Reserved.