com.mysema.query.alias
Enum MethodType

java.lang.Object
  extended by java.lang.Enum<MethodType>
      extended by 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

Enum Constant Summary
GET_MAPPED_PATH
           
GETTER
           
HASH_CODE
           
LIST_ACCESS
           
MAP_ACCESS
           
SCALA_GETTER
           
SCALA_LIST_ACCESS
           
SCALA_MAP_ACCESS
           
SIZE
           
TO_STRING
           
 
Method Summary
static MethodType get(Method method)
           
static MethodType valueOf(String name)
          Returns the enum constant of this type with the specified name.
static MethodType[] 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

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
Method Detail

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-2011 Mysema Ltd. All Rights Reserved.