Class CustomAnnotationRegistry.AnnotationResolverContext
- java.lang.Object
-
- com.mrivanplays.annotationconfig.core.CustomAnnotationRegistry.AnnotationResolverContext
-
- Enclosing class:
- CustomAnnotationRegistry
public static final class CustomAnnotationRegistry.AnnotationResolverContext extends Object
Represents aCustomAnnotationRegistry.AnnotationResolver
context.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Object
getAnnotatedConfig()
Returns the annotated config, holder of the field.Class<?>
getConfigType()
Returns the config type, which triggered the write method.Object
getDefaultsToValue()
Returns the defaults value.Field
getField()
Returns the field, holder of the written annotation.String
getKeyName()
Returns the preferred name of the field for configuration use.boolean
isPartOfConfigObject()
Returns whether or not the field is a part of config object, and thegetAnnotatedConfig()
is a config object.
-
-
-
Method Detail
-
getConfigType
public Class<?> getConfigType()
Returns the config type, which triggered the write method.- Returns:
- config type
-
getField
public Field getField()
Returns the field, holder of the written annotation.- Returns:
- field
-
getAnnotatedConfig
public Object getAnnotatedConfig()
Returns the annotated config, holder of the field.- Returns:
- annotated config
-
getDefaultsToValue
public Object getDefaultsToValue()
Returns the defaults value.- Returns:
- defaults
-
getKeyName
public String getKeyName()
Returns the preferred name of the field for configuration use.- Returns:
- key
-
isPartOfConfigObject
public boolean isPartOfConfigObject()
Returns whether or not the field is a part of config object, and thegetAnnotatedConfig()
is a config object.- Returns:
- config object or not
-
-