Annotation Type JRubyMethod


@Retention(RUNTIME) @Target(METHOD) public @interface JRubyMethod
  • Optional Element Summary

    Optional Elements
    Modifier and Type
    Optional Element
    Description
    Any alias or aliases for this method.
    Argument types to coerce to before calling
    boolean
    Deprecated.
    Deprecated.
    boolean
    Whether this method expects to have a call frame allocated for it.
    A list of classes that implement an abstract JRubyMethod, for backtrace purposes.
    boolean
    Whether this method should be defined on the metaclass.
    boolean
    Whether this method should be a module function, defined on metaclass and private on class.
    The name or names of this method in Ruby-land.
    boolean
    Whether this method should show up as defined in response to respond_to? calls
    boolean
    Whether to use a frame slot for backtrace information
    int
    The number of optional arguments.
    What, if anything, method reads from caller's frame
    int
    The number of required arguments.
    boolean
    Whether this method has a "rest" argument.
    boolean
    Deprecated.
    The visibility of this method.
    What, if anything, method writes to caller's frame
  • Element Details

    • name

      String[] name
      The name or names of this method in Ruby-land.
      Default:
      {}
    • required

      int required
      The number of required arguments.
      Default:
      0
    • optional

      int optional
      The number of optional arguments.
      Default:
      0
    • rest

      boolean rest
      Whether this method has a "rest" argument.
      Default:
      false
    • alias

      String[] alias
      Any alias or aliases for this method.
      Default:
      {}
    • meta

      boolean meta
      Whether this method should be defined on the metaclass.
      Default:
      false
    • module

      boolean module
      Whether this method should be a module function, defined on metaclass and private on class.
      Default:
      false
    • frame

      boolean frame
      Whether this method expects to have a call frame allocated for it.
      Default:
      false
    • visibility

      Visibility visibility
      The visibility of this method.
      Default:
      PUBLIC
    • reads

      FrameField[] reads
      What, if anything, method reads from caller's frame
      Default:
      {}
    • writes

      FrameField[] writes
      What, if anything, method writes to caller's frame
      Default:
      {}
    • argTypes

      Class[] argTypes
      Argument types to coerce to before calling
      Default:
      {}
    • omit

      boolean omit
      Whether to use a frame slot for backtrace information
      Default:
      false
    • notImplemented

      boolean notImplemented
      Whether this method should show up as defined in response to respond_to? calls
      Default:
      false
    • implementers

      Class[] implementers
      A list of classes that implement an abstract JRubyMethod, for backtrace purposes.
      Default:
      {}
    • scope

      @Deprecated boolean scope
      Deprecated.
      Default:
      false
    • compat

      Deprecated.
      Default:
      BOTH
    • backtrace

      @Deprecated boolean backtrace
      Deprecated.
      Default:
      false