Interface DescriptorEnricher<V,D extends Descriptor>
- Type Parameters:
V- The value type.D- TheDescriptortype.
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 TypeMethodDescriptiontoDescriptor(V type, D target, Scanner scanner) Enrich an existingDescriptorwith the given value.
-
Method Details
-
toDescriptor
Enrich an existingDescriptorwith the given value.- Parameters:
type- The object.scanner- TheScanner.- Returns:
- The mapped
Descriptor.
-