public class ForEachImpl extends java.lang.Object implements ForEach
ForEach
.
Note: the use of ForEachImpl
is different from
ConditionImpl
. While you could use the same instance of
ConditionImpl
for all evaluation, each instance of
ForEachImpl
can be used only once (drop it after next()
returns false).
Constructor and Description |
---|
ForEachImpl(EvaluatorRef evalr,
Component comp,
ExValue[] expr,
ExValue begin,
ExValue end)
Constructor.
|
ForEachImpl(EvaluatorRef evalr,
Component comp,
ExValue[] expr,
ExValue begin,
ExValue end,
ExValue step)
Constructor.
|
ForEachImpl(EvaluatorRef evalr,
Component comp,
java.lang.String expr,
java.lang.String begin,
java.lang.String end)
Constructor.
|
ForEachImpl(EvaluatorRef evalr,
Page page,
ExValue[] expr,
ExValue begin,
ExValue end)
Constructor.
|
ForEachImpl(EvaluatorRef evalr,
Page page,
ExValue[] expr,
ExValue begin,
ExValue end,
ExValue step)
Constructor.
|
ForEachImpl(EvaluatorRef evalr,
Page page,
java.lang.String expr,
java.lang.String begin,
java.lang.String end)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
static ForEach |
getInstance(EvaluatorRef evalr,
Component comp,
ExValue[] expr,
ExValue begin,
ExValue end)
Returns an instance that represents the iterator for the
specified collection.
|
static ForEach |
getInstance(EvaluatorRef evalr,
Component comp,
ExValue[] expr,
ExValue begin,
ExValue end,
ExValue step)
Returns an instance that represents the iterator for the
specified collection.
|
static ForEach |
getInstance(EvaluatorRef evalr,
Component comp,
java.lang.String expr,
java.lang.String begin,
java.lang.String end)
Returns an instance that represents the iterator for the
specified collection, or null if expr is null or empty.
|
static ForEach |
getInstance(EvaluatorRef evalr,
Page page,
ExValue[] expr,
ExValue begin,
ExValue end)
Returns an instance that represents the iterator for the
specified collection, or null if expr is null or empty.
|
static ForEach |
getInstance(EvaluatorRef evalr,
Page page,
ExValue[] expr,
ExValue begin,
ExValue end,
ExValue step)
Returns an instance that represents the iterator for the
specified collection, or null if expr is null or empty.
|
static ForEach |
getInstance(EvaluatorRef evalr,
Page page,
java.lang.String expr,
java.lang.String begin,
java.lang.String end)
Returns an instance that represents the iterator for the
specified collection, or null if expr is null or empty.
|
boolean |
next()
Advanced to the next element.
|
public ForEachImpl(EvaluatorRef evalr, Component comp, ExValue[] expr, ExValue begin, ExValue end, ExValue step)
getInstance(EvaluatorRef, Component, ExValue[], ExValue, ExValue, ExValue)
instead of this constructor.java.lang.IllegalArgumentException
- if comp or evalr is nullpublic ForEachImpl(EvaluatorRef evalr, Page page, ExValue[] expr, ExValue begin, ExValue end, ExValue step)
getInstance(EvaluatorRef, Component, ExValue[], ExValue, ExValue, ExValue)
instead of this constructor.java.lang.IllegalArgumentException
- if page or evalr is nullpublic ForEachImpl(EvaluatorRef evalr, Component comp, ExValue[] expr, ExValue begin, ExValue end)
getInstance(EvaluatorRef, Component, ExValue[], ExValue, ExValue)
instead of this constructor.java.lang.IllegalArgumentException
- if comp or evalr is nullpublic ForEachImpl(EvaluatorRef evalr, Page page, ExValue[] expr, ExValue begin, ExValue end)
getInstance(EvaluatorRef, Component, ExValue[], ExValue, ExValue)
instead of this constructor.java.lang.IllegalArgumentException
- if page or evalr is nullpublic ForEachImpl(EvaluatorRef evalr, Component comp, java.lang.String expr, java.lang.String begin, java.lang.String end)
getInstance(EvaluatorRef, Component, String, String, String)
instead of this constructor.java.lang.IllegalArgumentException
- if comp or evalr is nullForEachImpl(EvaluatorRef, Component, ExValue[], ExValue, ExValue)
public ForEachImpl(EvaluatorRef evalr, Page page, java.lang.String expr, java.lang.String begin, java.lang.String end)
getInstance(EvaluatorRef, Component, String, String, String)
instead of this constructor.java.lang.IllegalArgumentException
- if page or evalr is nullForEachImpl(EvaluatorRef, Page, ExValue[], ExValue, ExValue)
public static ForEach getInstance(EvaluatorRef evalr, Component comp, ExValue[] expr, ExValue begin, ExValue end)
expr
- an array of expressions. There are two formats.
public static ForEach getInstance(EvaluatorRef evalr, Page page, ExValue[] expr, ExValue begin, ExValue end)
expr
- an array of expressions. There are two formats.
public static ForEach getInstance(EvaluatorRef evalr, Component comp, ExValue[] expr, ExValue begin, ExValue end, ExValue step)
expr
- an array of expressions. There are two formats.
public static ForEach getInstance(EvaluatorRef evalr, Page page, ExValue[] expr, ExValue begin, ExValue end, ExValue step)
expr
- an array of expressions. There are two formats.
public static ForEach getInstance(EvaluatorRef evalr, Component comp, java.lang.String expr, java.lang.String begin, java.lang.String end)
expr
- an EL expression that shall return a collection of objects.getInstance(EvaluatorRef, Component, ExValue[], ExValue, ExValue)
public static ForEach getInstance(EvaluatorRef evalr, Page page, java.lang.String expr, java.lang.String begin, java.lang.String end)
expr
- an EL expression that shall return a collection of objects.getInstance(EvaluatorRef, Page, ExValue[], ExValue, ExValue)
Copyright © 2005-2011 Potix Corporation. All Rights Reserved.