org.jruby.runtime
Class Block

java.lang.Object
  extended byorg.jruby.runtime.Block
All Implemented Interfaces:
StackElement

public class Block
extends java.lang.Object
implements StackElement

Version:
$Revision: 1.9 $
Author:
jpetersen

Method Summary
 Arity arity()
           
 IRubyObject call(IRubyObject[] args)
           
 IRubyObject call(IRubyObject[] args, IRubyObject replacementSelf)
           
 Block cloneBlock()
           
static Block createBlock(INode var, ICallable method, IRubyObject self)
           
 DynamicVariableSet getDynamicVariables()
          Gets the dynamicVariables.
 Frame getFrame()
          Gets the frame.
 Iter getIter()
          Gets the iter.
 RubyModule getKlass()
          Gets the klass.
 ICallable getMethod()
          Gets the method.
 StackElement getNext()
           
 Scope getScope()
          Gets the scope.
 IRubyObject getSelf()
          Gets the self.
 INode getVar()
          Gets the var.
 Visibility getVisibility()
           
 void setIter(Iter iter)
          Sets the iter.
 void setNext(StackElement newNext)
           
 void setVisibility(Visibility visibility)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

createBlock

public static Block createBlock(INode var,
                                ICallable method,
                                IRubyObject self)

call

public IRubyObject call(IRubyObject[] args)

call

public IRubyObject call(IRubyObject[] args,
                        IRubyObject replacementSelf)

cloneBlock

public Block cloneBlock()

arity

public Arity arity()

getVisibility

public Visibility getVisibility()

setVisibility

public void setVisibility(Visibility visibility)

getNext

public StackElement getNext()
Specified by:
getNext in interface StackElement
See Also:
StackElement.getNext()

setNext

public void setNext(StackElement newNext)
Specified by:
setNext in interface StackElement
See Also:
StackElement.setNext(StackElement)

getDynamicVariables

public DynamicVariableSet getDynamicVariables()
Gets the dynamicVariables.

Returns:
Returns a RubyVarmap

getFrame

public Frame getFrame()
Gets the frame.

Returns:
Returns a RubyFrame

getIter

public Iter getIter()
Gets the iter.

Returns:
Returns a int

setIter

public void setIter(Iter iter)
Sets the iter.

Parameters:
iter - The iter to set

getKlass

public RubyModule getKlass()
Gets the klass.

Returns:
Returns a RubyModule

getMethod

public ICallable getMethod()
Gets the method.

Returns:
Returns a IMethod

getScope

public Scope getScope()
Gets the scope.

Returns:
Returns a Scope

getSelf

public IRubyObject getSelf()
Gets the self.

Returns:
Returns a RubyObject

getVar

public INode getVar()
Gets the var.

Returns:
Returns a INode


Copyright © 2002 Jan Arne Petersen. All Rights Reserved.