public enum AnonymousFunctionNamingPolicy extends java.lang.Enum<AnonymousFunctionNamingPolicy>
Enum Constant and Description |
---|
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.
|
Modifier and Type | Method and Description |
---|---|
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(java.lang.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.
|
public static final AnonymousFunctionNamingPolicy OFF
public static final AnonymousFunctionNamingPolicy UNMAPPED
NameAnonymousFunctions
public static final AnonymousFunctionNamingPolicy MAPPED
NameAnonymousFunctionsMapped
public static AnonymousFunctionNamingPolicy[] values()
for (AnonymousFunctionNamingPolicy c : AnonymousFunctionNamingPolicy.values()) System.out.println(c);
public static AnonymousFunctionNamingPolicy valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is nullpublic char[] getReservedCharacters()
Copyright © 2009-2017 Google. All Rights Reserved.