Interface DescriptorEnricher<V,D extends Descriptor>

Type Parameters:
V - The value type.
D - The Descriptor type.

public interface DescriptorEnricher<V,D extends Descriptor>
Base interface for enriching existing XO Descriptors.

Usually used after retrieving a FileDescriptor from the ScannerContext and adding a specific label to it.

  • Method Summary

    Modifier and Type
    Method
    Description
    toDescriptor(V type, D target, Scanner scanner)
    Enrich an existing Descriptor with the given value.
  • Method Details

    • toDescriptor

      D toDescriptor(V type, D target, Scanner scanner)
      Enrich an existing Descriptor with the given value.
      Parameters:
      type - The object.
      scanner - The Scanner.
      Returns:
      The mapped Descriptor.