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