Interface ITypeResolver
-
public interface ITypeResolver
-
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Modifier and Type Method Description com.squareup.javapoet.ClassName
getBaseClassName(IFlagContainer definition)
Get the name of the base class to use for the class associated with the provided definition.com.squareup.javapoet.ClassName
getClassName(IFlagContainer definition)
Get the name of the class associated with the provided definition.com.squareup.javapoet.ClassName
getClassName(IModule module)
Get the name of the class associated with the provided Module module.String
getPackageName(IModule module)
Get the Java package name to use for the provided Module module.IAssemblyDefinitionTypeInfo
getTypeInfo(IAssemblyDefinition definition)
Get type information for the provideddefinition
.IFieldDefinitionTypeInfo
getTypeInfo(IFieldDefinition definition)
Get type information for the provideddefinition
.IModelDefinitionTypeInfo
getTypeInfo(IFlagContainer definition)
Get type information for the provideddefinition
.static ITypeResolver
newTypeResolver(IBindingConfiguration bindingConfiguration)
Construct a new type resolver using the default implementation.
-
-
-
Method Detail
-
newTypeResolver
@NonNull static ITypeResolver newTypeResolver(@NonNull IBindingConfiguration bindingConfiguration)
Construct a new type resolver using the default implementation.- Parameters:
bindingConfiguration
- the binding configuration used to configure types- Returns:
- the type resolver
-
getTypeInfo
@NonNull IAssemblyDefinitionTypeInfo getTypeInfo(@NonNull IAssemblyDefinition definition)
Get type information for the provideddefinition
.- Parameters:
definition
- the definition to get type information for- Returns:
- the type information
-
getTypeInfo
@NonNull IFieldDefinitionTypeInfo getTypeInfo(@NonNull IFieldDefinition definition)
Get type information for the provideddefinition
.- Parameters:
definition
- the definition to get type information for- Returns:
- the type information
-
getTypeInfo
@NonNull IModelDefinitionTypeInfo getTypeInfo(@NonNull IFlagContainer definition)
Get type information for the provideddefinition
.- Parameters:
definition
- the definition to get type information for- Returns:
- the type information
-
getClassName
@NonNull com.squareup.javapoet.ClassName getClassName(@NonNull IModule module)
Get the name of the class associated with the provided Module module.- Parameters:
module
- the Module module that will be built as a class- Returns:
- the class name information for the Module module
-
getClassName
@NonNull com.squareup.javapoet.ClassName getClassName(@NonNull IFlagContainer definition)
Get the name of the class associated with the provided definition.- Parameters:
definition
- a definition that may be built as a subclass- Returns:
- the class name information for the definition
-
getBaseClassName
@Nullable com.squareup.javapoet.ClassName getBaseClassName(@NonNull IFlagContainer definition)
Get the name of the base class to use for the class associated with the provided definition.- Parameters:
definition
- a definition that may be built as a class- Returns:
- the name of the base class or
null
if no base class is to be used
-
getPackageName
@NonNull String getPackageName(@NonNull IModule module)
Get the Java package name to use for the provided Module module.- Parameters:
module
- the Module module- Returns:
- the Java package name
-
-