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.
-
Method Details
-
resolve
Resolve a Java type from aDataTypeDefinition. -
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.
-