Class FieldSummary
java.lang.Object
redempt.redlib.config.instantiation.FieldSummary
Represents a summary of the relevant fields, converters, and other info required to load objects from config
-
Method Summary
Modifier and TypeMethodDescriptionvoid
applyComments
(DataHolder holder) Attempts to apply comments to the given DataHoldergetComments
(Field field) Gets the comments applied to a fieldgetComments
(Parameter param) Gets the comments applied to a parameterstatic FieldSummary
getFieldSummary
(ConversionManager manager, Class<?> clazz, boolean staticContext) Generates a FieldSummary of a class
-
Method Details
-
getComments
Gets the comments applied to a field- Parameters:
field
- The Field- Returns:
- The comments applied to the field
-
getComments
Gets the comments applied to a parameter- Parameters:
param
- The Parameter- Returns:
- The comments applied to the parameter
-
getFieldSummary
public static FieldSummary getFieldSummary(ConversionManager manager, Class<?> clazz, boolean staticContext) Generates a FieldSummary of a class- Parameters:
manager
- The ConversionManager with access to convertersclazz
- The class being summarizedstaticContext
- Whether static fields should be retrieved instead of member fields- Returns:
- A field summary
-
getFields
- Returns:
- The ConfigFields that should be loaded to
-
getConverters
- Returns:
- The converters for all the field types
-
getConfigPath
- Returns:
- The ConfigPath field, if one exists
-
getConfigPathConverter
- Returns:
- The converter for the ConfigPath field, if it exists
-
getPostInit
- Returns:
- The post-init method, if it exists
-
applyComments
Attempts to apply comments to the given DataHolder- Parameters:
holder
- The DataHolder to apply comments to
-