Top Methods
org.jruby.anno

public @Interface JRubyMethod

extends Annotation
Annotations
@Retention:RUNTIME
@Target:METHOD
Imports
java.lang.annotation.ElementType, .Retention, .RetentionPolicy, .Target, org.jruby.runtime.Visibility

Method Summary

Modifier and TypeMethod and Description
public String[]
alias()

Any alias or aliases for this method.

public Class<T>[]
argTypes()

Argument types to coerce to before calling

public boolean
backtrace()
Deprecated

public boolean
checkArity()

Whether automatic arity-checking should be added to the Ruby binding for this method.

public boolean
frame()

Whether this method expects to have a call frame allocated for it.

public Class<T>[]
implementers()

A list of classes that implement an abstract JRubyMethod, for backtrace purposes.

public boolean
keywords()

Whether this method may recieve keyword arguments.

public boolean
meta()

Whether this method should be defined on the metaclass.

public boolean
module()

Whether this method should be a module function, defined on metaclass and private on class.

public String[]
name()

The name or names of this method in Ruby-land.

public boolean
notImplemented()

Whether this method should show up as defined in response to respond_to?

public boolean
omit()

Whether to use a frame slot for backtrace information

public int
optional()

The number of optional arguments.

public FrameField[]
reads()

What, if anything, method reads from caller's frame

public int
required()

The number of required arguments.

public boolean
rest()

Whether this method has a "rest" argument.

public boolean
scope()
Deprecated

public Visibility
visibility()

The visibility of this method.

public FrameField[]
writes()

What, if anything, method writes to caller's frame

Inherited from java.lang.annotation.Annotation:
annotationTypeequalshashCodetoString

Method Detail

aliasback to summary
public String[] alias()

Any alias or aliases for this method.

argTypesback to summary
public Class<T>[] argTypes()

Argument types to coerce to before calling

backtraceback to summary
public boolean backtrace()

Deprecated

Annotations
@Deprecated
checkArityback to summary
public boolean checkArity()

Whether automatic arity-checking should be added to the Ruby binding for this method. Users can opt-out and do their own arity-checking in the method body.

frameback to summary
public boolean frame()

Whether this method expects to have a call frame allocated for it.

implementersback to summary
public Class<T>[] implementers()

A list of classes that implement an abstract JRubyMethod, for backtrace purposes.

keywordsback to summary
public boolean keywords()

Whether this method may recieve keyword arguments. Methods may directly process the keywords or decide to pass them on to a subcall. This will determine whether ThreadContext#callInfo will get reset before the call begins or not. If keywords is true then it is the methods job to reset or not reset callInfo.

metaback to summary
public boolean meta()

Whether this method should be defined on the metaclass.

moduleback to summary
public boolean module()

Whether this method should be a module function, defined on metaclass and private on class.

nameback to summary
public String[] name()

The name or names of this method in Ruby-land.

notImplementedback to summary
public boolean notImplemented()

Whether this method should show up as defined in response to respond_to? calls

omitback to summary
public boolean omit()

Whether to use a frame slot for backtrace information

optionalback to summary
public int optional()

The number of optional arguments.

readsback to summary
public FrameField[] reads()

What, if anything, method reads from caller's frame

requiredback to summary
public int required()

The number of required arguments.

restback to summary
public boolean rest()

Whether this method has a "rest" argument.

scopeback to summary
public boolean scope()

Deprecated

Annotations
@Deprecated
visibilityback to summary
public Visibility visibility()

The visibility of this method.

writesback to summary
public FrameField[] writes()

What, if anything, method writes to caller's frame