org.codehaus.groovy.runtime
Class IteratorClosureAdapter

java.lang.Object
  |
  +--groovy.lang.GroovyObjectSupport
        |
        +--groovy.lang.Closure
              |
              +--org.codehaus.groovy.runtime.IteratorClosureAdapter
All Implemented Interfaces:
GroovyObject

public class IteratorClosureAdapter
extends Closure

A closure which stores calls in a List so that method calls can be iterated over in a 'yield' style way

Version:
$Revision: 1.1 $
Author:
James Strachan

Constructor Summary
IteratorClosureAdapter(Object delegate)
           
 
Method Summary
 List asList()
           
protected  void doCall(Object argument)
           
 groovy.lang.MetaClass getMetaClass()
           
 void setMetaClass(groovy.lang.MetaClass metaClass)
          Allows the MetaClass to be replaced with a derived implementation
 
Methods inherited from class groovy.lang.Closure
call, call, getDelegate, invokeMethod, setDelegate
 
Methods inherited from class groovy.lang.GroovyObjectSupport
getProperty, setProperty
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

IteratorClosureAdapter

public IteratorClosureAdapter(Object delegate)
Method Detail

getMetaClass

public groovy.lang.MetaClass getMetaClass()
Specified by:
getMetaClass in interface GroovyObject
Overrides:
getMetaClass in class GroovyObjectSupport
Returns:
the metaClass of this instance

setMetaClass

public void setMetaClass(groovy.lang.MetaClass metaClass)
Description copied from interface: GroovyObject
Allows the MetaClass to be replaced with a derived implementation

Specified by:
setMetaClass in interface GroovyObject
Overrides:
setMetaClass in class GroovyObjectSupport

asList

public List asList()

doCall

protected void doCall(Object argument)


Copyright © 2003 The Codehaus. All Rights Reserved.