Module rgg
Package de.grogra.rgg

Class FloatSynth<T>

java.lang.Object
de.grogra.rgg.FloatSynth<T>
Type Parameters:
T - the type of objects for which synthesized attributes are computed
All Implemented Interfaces:
VoidToFloatGenerator

public final class FloatSynth<T> extends Object implements VoidToFloatGenerator
Instances of 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.
Author:
Ole Kniemeyer
  • Field Details

    • object

      public T object
      The current object.
  • Constructor Details

    • FloatSynth

      public FloatSynth()
  • Method Details

    • evaluateFloat

      public void evaluateFloat(FloatConsumer cons)
      This generator method yields the values of the synthesized attribute for every descendant of object. These values have been computed previously.
      Specified by:
      evaluateFloat in interface VoidToFloatGenerator
      Parameters:
      cons - the consumer which receives the values of synthesized attribute of descendants
    • values

      public void values(FloatConsumer cons)
    • size

      public int size()
    • get

      public float get(int index)