de.grogra.rgg
T - the type of objects for which synthesized attributes are computedpublic final class LongSynth<T> extends java.lang.Object implements VoidToLongGenerator
LongSynth are used in the context of the method
Library.synthesize(Object, ObjectToObjectGenerator, ObjectToLong).
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
evaluateLong yields the values of the synthesized attributes of
object's descendants.| Constructor and Description |
|---|
LongSynth() |
| Modifier and Type | Method and Description |
|---|---|
void |
evaluateLong(LongConsumer cons)
This generator method yields the values of the synthesized attribute
for every descendant of
object. |
long |
get(int index) |
int |
size() |
void |
values(LongConsumer cons)
This method is an alias for
evaluateLong(de.grogra.xl.lang.LongConsumer). |
public T object
public void evaluateLong(LongConsumer cons)
object. These values have been
computed previously.evaluateLong in interface VoidToLongGeneratorcons - the consumer which receives the values of synthesized
attribute of descendantspublic long get(int index)
public int size()
public void values(LongConsumer cons)
evaluateLong(de.grogra.xl.lang.LongConsumer).