Class FieldSummary

java.lang.Object
redempt.redlib.config.instantiation.FieldSummary

public class FieldSummary extends Object
Represents a summary of the relevant fields, converters, and other info required to load objects from config
  • Method Details

    • getFieldSummary

      public static FieldSummary getFieldSummary(ConfigManager manager, Class<?> clazz, boolean staticContext)
      Generates a FieldSummary of a class
      Parameters:
      manager - The ConfigManager with access to converters
      clazz - The class being summarized
      staticContext - Whether static fields should be retrieved instead of member fields
      Returns:
      A field summary
    • getFields

      public List<ConfigField> getFields()
      Returns:
      The ConfigFields that should be loaded to
    • getConverters

      public Map<ConfigField,TypeConverter<?>> getConverters()
      Returns:
      The converters for all the field types
    • getConfigPath

      public Field getConfigPath()
      Returns:
      The ConfigPath field, if one exists
    • getConfigPathConverter

      public StringConverter<?> getConfigPathConverter()
      Returns:
      The converter for the ConfigPath field, if it exists
    • getPostInit

      public Method getPostInit()
      Returns:
      The post-init method, if it exists