Interface MetadataSource.PropertyConsumer

  • Enclosing class:
    MetadataSource

    public static interface MetadataSource.PropertyConsumer
    This interface is implemented by objects that want to access textual metadata.
    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      void addProperty​(Member m, java.lang.String name, java.lang.Object value)
      Called when a new property is ready to be consumed.
      void doneAddingBlock()  
      void doneAddingProperties()
      Called after all properties have been added.
      boolean isValid()
      A metadata source may call this while processing metadata to determine if the consumer is still interested in this data.
    • Method Detail

      • addProperty

        void addProperty​(Member m,
                         java.lang.String name,
                         java.lang.Object value)
        Called when a new property is ready to be consumed.
        Parameters:
        name - the name of the property
        value - the value of the property
      • doneAddingBlock

        void doneAddingBlock()
      • doneAddingProperties

        void doneAddingProperties()
        Called after all properties have been added.
      • isValid

        boolean isValid()
        A metadata source may call this while processing metadata to determine if the consumer is still interested in this data. This allows the source to terminate expensive operations that are no longer of interest. This may be called from any thread.
        Returns:
        true if the consumer is still interested in this data