|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.rubato.logeo.Apply
public class Apply
This class implements an apply operation. A function is applied to every part of a denotator that matches some given criteria. The denotator may be modified inplace, so this should be considered a destructive operation. However an applied function does not need to modify anything and could simply collect information.
Method Summary | |
---|---|
static void |
apply(Denotator d,
Form form,
Function f)
Applies the function f to the
denotator d for every part of d
that matches the given form. |
static void |
apply(Denotator d,
Predicate p,
Function f)
Applies the function f to the
denotator d for every part of d
that satisfies the predicate p . |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static void apply(Denotator d, Form form, Function f) throws RubatoException
f
to the
denotator d
for every part of d
that matches the given form.
d
- the denotator that the function is applied toform
- the form of the parts the function is applied tof
- the function that is applied
RubatoException
public static void apply(Denotator d, Predicate p, Function f) throws RubatoException
f
to the
denotator d
for every part of d
that satisfies the predicate p
.
d
- the denotator that the function is applied top
- the predicate that a part must satisfy for the function to be appliedf
- the function that is applied
RubatoException
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |