Enum Direct.DirectFormat

java.lang.Object
java.lang.Enum<Direct.DirectFormat>
org.robolectric.util.reflector.Direct.DirectFormat
All Implemented Interfaces:
Serializable, Comparable<Direct.DirectFormat>, java.lang.constant.Constable
Enclosing class:
Direct

public static enum Direct.DirectFormat extends Enum<Direct.DirectFormat>
The format to use for the direct method. It can either be DEFAULT or NATIVE.

In the default format, the method that ends up getting invoked is $$robo$$<classname>$<methodname>.

In the native format, the method that ends up getting invoked is $$robo$$<methodname>$nativeBinding.

See Also:
  • invalid reference
    ShadowImpl#directMethodName(String, String)
  • invalid reference
    ShadowImpl#directNativeMethodName(String, String)
  • Enum Constant Details

  • Method Details

    • values

      public static Direct.DirectFormat[] 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 Direct.DirectFormat 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