|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD | ||||||||
java.lang.Objectjava.lang.Enum<AnonymousFunctionNamingPolicy>
com.google.javascript.jscomp.AnonymousFunctionNamingPolicy
public enum AnonymousFunctionNamingPolicy
Strategies for how to do naming of anonymous functions that occur as r-values in assignments and variable declarations.
| Enum Constant Summary | |
|---|---|
MAPPED
Generates short unique names and provides a mapping from them back to a more meaningful name that's based on the left-hand side of the assignment. |
|
OFF
Don't give anonymous functions names |
|
UNMAPPED
Generates names that are based on the left-hand side of the assignment. |
|
| Method Summary | |
|---|---|
char[] |
getReservedCharacters()
Gets characters that are reserved for use in anonymous function names and can't be used in variable or property names. |
static AnonymousFunctionNamingPolicy |
valueOf(String name)
Returns the enum constant of this type with the specified name. |
static AnonymousFunctionNamingPolicy[] |
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 |
| Enum Constant Detail |
|---|
public static final AnonymousFunctionNamingPolicy OFF
public static final AnonymousFunctionNamingPolicy UNMAPPED
NameAnonymousFunctionspublic static final AnonymousFunctionNamingPolicy MAPPED
NameAnonymousFunctionsMapped| Method Detail |
|---|
public static AnonymousFunctionNamingPolicy[] values()
for (AnonymousFunctionNamingPolicy c : AnonymousFunctionNamingPolicy.values()) System.out.println(c);
public static AnonymousFunctionNamingPolicy valueOf(String name)
name - the name of the enum constant to be returned.
IllegalArgumentException - if this enum type has no constant
with the specified name
NullPointerException - if the argument is nullpublic char[] getReservedCharacters()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD | ||||||||