com.google.caja.parser.js
Enum Directive.RecognizedValue
java.lang.Object
java.lang.Enum<Directive.RecognizedValue>
com.google.caja.parser.js.Directive.RecognizedValue
- All Implemented Interfaces:
- java.io.Serializable, java.lang.Comparable<Directive.RecognizedValue>
- Enclosing class:
- Directive
public static enum Directive.RecognizedValue
- extends java.lang.Enum<Directive.RecognizedValue>
The directive strings recognized by Caja.
Enum Constant Summary |
USE_CAJITA
String value of a directive invoking Cajita mode. |
USE_STRICT
Directive invoking ES5 "strict" mode. |
Methods inherited from class java.lang.Enum |
clone, compareTo, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf |
Methods inherited from class java.lang.Object |
finalize, getClass, notify, notifyAll, wait, wait, wait |
USE_STRICT
public static final Directive.RecognizedValue USE_STRICT
- Directive invoking ES5 "strict" mode.
USE_CAJITA
public static final Directive.RecognizedValue USE_CAJITA
- String value of a directive invoking Cajita mode.
directiveString
private final java.lang.String directiveString
values
public static final Directive.RecognizedValue[] values()
- Returns an array containing the constants of this enum type, in
the order they're declared. This method may be used to iterate
over the constants as follows:
for(Directive.RecognizedValue c : Directive.RecognizedValue.values())
System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in
the order they're declared
valueOf
public static Directive.RecognizedValue 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
getDirectiveString
public java.lang.String getDirectiveString()
- Returns:
- the representation of this directive in source code.
isDirectiveStringRecognized
public static boolean isDirectiveStringRecognized(java.lang.String directiveString)
Copyright (C) 2008 Google Inc.
Licensed under the Apache License, Version 2.0