public interface JavaTypeResolver
A function that can be injected into jOOQ-meta elements to resolve Java types
from
DataTypeDefinition.
This inversion of control is necessary to inject jOOQ-codegen behaviour into jOOQ-meta. It might become obsolete once we merge the two modules again.
- Author:
- Lukas Eder
-
Method Summary
Modifier and TypeMethodDescriptionclassLiteral(String type) Get a language dependent class literal for a type.constructorCall(String type) Get a language dependent constructor call for a type.Get the unqualified type reference and add an import for the qualified type, if necessary.Get the unqualified type reference and add an import for the qualified type, if necessary.resolve(DataTypeDefinition type) Resolve a Java type from aDataTypeDefinition.Resolve a Java type from a qualified user type.<T> TresolveDefinedType(Supplier<T> supplier) Map a defined type to a user type, resolving converters and bindings, which may not need imports in some output modes.
-
Method Details
-
resolve
Resolve a Java type from aDataTypeDefinition. -
resolve
Resolve a Java type from a qualified user type. -
classLiteral
Get a language dependent class literal for a type.Language Output for StringJava String.classScala classOf[String]Kotlin String::class.java -
constructorCall
Get a language dependent constructor call for a type.Language Output for StringJava new EnumConverter<A, B>Scala new EnumConverter[A, B]Kotlin EnumConverter<A, B> -
ref
Get the unqualified type reference and add an import for the qualified type, if necessary. -
ref
Get the unqualified type reference and add an import for the qualified type, if necessary. -
resolveDefinedType
Map a defined type to a user type, resolving converters and bindings, which may not need imports in some output modes.
-