public final class PropertyFieldExtractor extends FieldVisitor
FieldVisitor
that extracts Property
fields and save them into a map.
For keys that are already exists in the property map, it keep them as is and not overwriting them.Constructor and Description |
---|
PropertyFieldExtractor(Map<String,String> properties)
Constructs a
PropertyFieldExtractor that stores results to the given map. |
Modifier and Type | Method and Description |
---|---|
void |
visit(Object instance,
Type inspectType,
Type declareType,
Field field)
Visits a field in the given type.
|
visit
public PropertyFieldExtractor(Map<String,String> properties)
PropertyFieldExtractor
that stores results to the given map.Copyright © 2021 Cask Data, Inc. Licensed under the Apache License, Version 2.0.