org.jruby.runtime
Class Arity

java.lang.Object
  extended byorg.jruby.runtime.Arity

public final class Arity
extends java.lang.Object

The arity of a method is the number of arguments it takes.


Method Summary
 void checkArity(Ruby ruby, IRubyObject[] args)
           
static Arity createArity(int value)
           
 boolean equals(java.lang.Object other)
           
static Arity fixed(int arity)
           
 int getValue()
           
 int hashCode()
           
static Arity noArguments()
           
static Arity optional()
           
static Arity required(int minimum)
           
static Arity singleArgument()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

createArity

public static Arity createArity(int value)

fixed

public static Arity fixed(int arity)

optional

public static Arity optional()

required

public static Arity required(int minimum)

noArguments

public static Arity noArguments()

singleArgument

public static Arity singleArgument()

getValue

public int getValue()

checkArity

public void checkArity(Ruby ruby,
                       IRubyObject[] args)

equals

public boolean equals(java.lang.Object other)

hashCode

public int hashCode()


Copyright © 2002 Jan Arne Petersen. All Rights Reserved.