de.grogra.rgg
T - the type of objects for which synthesized attributes are computedpublic final class FloatSynth<T> extends java.lang.Object implements VoidToFloatGenerator
FloatSynth are used in the context of the method
Library.synthesize(Object, ObjectToObjectGenerator, ObjectToFloat).
and represent the information needed for the computation of a synthesized
attribute: object is the current object for which the
synthesized attribute has to be computed, the generator method
evaluateFloat yields the values of the synthesized attributes of
object's descendants.| Constructor and Description |
|---|
FloatSynth() |
| Modifier and Type | Method and Description |
|---|---|
void |
evaluateFloat(FloatConsumer cons)
This generator method yields the values of the synthesized attribute
for every descendant of
object. |
float |
get(int index) |
int |
size() |
void |
values(FloatConsumer cons)
This method is an alias for
evaluateFloat(de.grogra.xl.lang.FloatConsumer). |
public T object
public void evaluateFloat(FloatConsumer cons)
object. These values have been
computed previously.evaluateFloat in interface VoidToFloatGeneratorcons - the consumer which receives the values of synthesized
attribute of descendantspublic float get(int index)
public int size()
public void values(FloatConsumer cons)
evaluateFloat(de.grogra.xl.lang.FloatConsumer).