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