java.lang.Object
de.grogra.rgg.ShortSynth<T>
- Type Parameters:
T
- the type of objects for which synthesized attributes are computed
- All Implemented Interfaces:
VoidToShortGenerator
Instances of
ShortSynth
are used in the context of the method
Library.synthesize(Object, ObjectToObjectGenerator, ObjectToShort)
.
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
evaluateShort
yields the values of the synthesized attributes of
object
's descendants.- Author:
- Ole Kniemeyer
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
evaluateShort
(ShortConsumer cons) This generator method yields the values of the synthesized attribute for every descendant ofobject
.short
get
(int index) int
size()
void
values
(ShortConsumer cons) This method is an alias forevaluateShort(de.grogra.xl.lang.ShortConsumer)
.
-
Field Details
-
object
The current object.
-
-
Constructor Details
-
ShortSynth
public ShortSynth()
-
-
Method Details
-
evaluateShort
This generator method yields the values of the synthesized attribute for every descendant ofobject
. These values have been computed previously.- Specified by:
evaluateShort
in interfaceVoidToShortGenerator
- Parameters:
cons
- the consumer which receives the values of synthesized attribute of descendants
-
values
This method is an alias forevaluateShort(de.grogra.xl.lang.ShortConsumer)
. -
size
public int size() -
get
public short get(int index)
-