com.mysema.query.alias
Enum MethodType
java.lang.Object
java.lang.Enum<MethodType>
com.mysema.query.alias.MethodType
- All Implemented Interfaces:
- Serializable, Comparable<MethodType>
public enum MethodType
- extends Enum<MethodType>
MethodType defines the supported method types used in the Alias functionality
- Author:
- tiwe
GET_MAPPED_PATH
public static final MethodType GET_MAPPED_PATH
GETTER
public static final MethodType GETTER
HASH_CODE
public static final MethodType HASH_CODE
LIST_ACCESS
public static final MethodType LIST_ACCESS
MAP_ACCESS
public static final MethodType MAP_ACCESS
SIZE
public static final MethodType SIZE
TO_STRING
public static final MethodType TO_STRING
SCALA_GETTER
public static final MethodType SCALA_GETTER
SCALA_LIST_ACCESS
public static final MethodType SCALA_LIST_ACCESS
SCALA_MAP_ACCESS
public static final MethodType SCALA_MAP_ACCESS
values
public static MethodType[] 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 (MethodType c : MethodType.values())
System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in
the order they are declared
valueOf
public static MethodType 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
get
@Nullable
public static MethodType get(Method method)
Copyright © 2007-2012 Mysema Ltd. All Rights Reserved.