Enum MethodType

java.lang.Object
java.lang.Enum<MethodType>
com.querydsl.core.alias.MethodType
All Implemented Interfaces:
Serializable, Comparable<MethodType>, java.lang.constant.Constable

public enum MethodType extends Enum<MethodType>
MethodType defines the supported method types used in the Alias functionality
Author:
tiwe
  • Enum Constant Details

    • GET_MAPPED_PATH

      public static final MethodType GET_MAPPED_PATH
      __mappedPath invocation
    • GETTER

      public static final MethodType GETTER
      getter invocation
    • HASH_CODE

      public static final MethodType HASH_CODE
      hashCode invocation
    • LIST_ACCESS

      public static final MethodType LIST_ACCESS
      List#get(int) invocation
    • MAP_ACCESS

      public static final MethodType MAP_ACCESS
      Map#get(Object) invocation
    • SIZE

      public static final MethodType SIZE
      Collection#size() invocation
    • TO_STRING

      public static final MethodType TO_STRING
      toString invocation
    • SCALA_GETTER

      public static final MethodType SCALA_GETTER
      Scala getter invocation
    • SCALA_LIST_ACCESS

      public static final MethodType SCALA_LIST_ACCESS
      Scala list apply invocation
    • SCALA_MAP_ACCESS

      public static final MethodType SCALA_MAP_ACCESS
      Scala map apply invocation
  • Method Details

    • values

      public static MethodType[] values()
      Returns an array containing the constants of this enum type, in the order they are declared.
      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 @Nullable MethodType get(Method method)