Class Repeatable
- java.lang.Object
-
- groovy.lang.GroovyObjectSupport
-
- groovy.lang.Closure
-
- org.openehealth.ipf.modules.hl7.dsl.Repeatable
-
- All Implemented Interfaces:
GroovyCallable
,GroovyObject
,Serializable
,Cloneable
,Iterable<Visitable>
,Runnable
,Callable
public class Repeatable extends Closure implements Iterable<Visitable>
- See Also:
- Serialized Form
-
-
Field Summary
-
Fields inherited from class groovy.lang.Closure
DELEGATE_FIRST, DELEGATE_ONLY, DONE, IDENTITY, maximumNumberOfParameters, OWNER_FIRST, OWNER_ONLY, parameterTypes, SKIP, TO_SELF
-
-
Constructor Summary
Constructors Constructor Description Repeatable(Object owner, Object elements, Object structure, Object index)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
asBoolean()
protected Object
doCall(Object argument)
Object
elementAt(int argument)
String
encodeRepetitions()
void
from(Object value)
Object
getAt(int index)
Object
getElements()
Object
getIndex()
String
getPath()
Object
getProperty(String property)
Structure
getStructure()
boolean
isEmpty()
Iterator<Visitable>
iterator()
Object
methodMissing(String name, Object args)
Object
propertyMissing(String name)
void
setElements(Object value)
void
setIndex(Object value)
void
setStructure(Structure value)
int
size()
-
Methods inherited from class groovy.lang.Closure
andThen, andThenSelf, andThenSelf, asWritable, call, call, call, clone, compose, composeSelf, composeSelf, curry, curry, dehydrate, getDelegate, getDirective, getMaximumNumberOfParameters, getOwner, getParameterTypes, getResolveStrategy, getThisObject, isCase, leftShift, leftShift, memoize, memoizeAtLeast, memoizeAtMost, memoizeBetween, ncurry, ncurry, rcurry, rcurry, rehydrate, rightShift, run, setDelegate, setDirective, setProperty, setResolveStrategy, throwRuntimeException, trampoline, trampoline
-
Methods inherited from class groovy.lang.GroovyObjectSupport
getMetaClass, setMetaClass
-
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface groovy.lang.GroovyObject
invokeMethod
-
Methods inherited from interface java.lang.Iterable
forEach, spliterator
-
-
-
-
Method Detail
-
getStructure
public Structure getStructure()
-
setStructure
public void setStructure(Structure value)
-
getElements
public Object getElements()
-
setElements
public void setElements(Object value)
-
getIndex
public Object getIndex()
-
setIndex
public void setIndex(Object value)
-
getProperty
public Object getProperty(String property)
- Specified by:
getProperty
in interfaceGroovyObject
- Overrides:
getProperty
in classClosure
-
getAt
public Object getAt(int index)
-
from
public void from(Object value)
-
encodeRepetitions
public String encodeRepetitions()
-
elementAt
public Object elementAt(int argument)
-
size
public int size()
-
isEmpty
public boolean isEmpty()
-
asBoolean
public boolean asBoolean()
-
getPath
public String getPath()
-
-