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.
- Autor:
- Lukas Eder
-
Methodenübersicht
Modifizierer und TypMethodeBeschreibungcacheKey()Get a cache key for this resolver, which can be used for caching calls toresolve(DataTypeDefinition).classLiteral(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.
-
Methodendetails
-
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. -
cacheKey
Object cacheKey()Get a cache key for this resolver, which can be used for caching calls toresolve(DataTypeDefinition).It can be safely assumed that consecutive calls to
resolve(DataTypeDefinition)will produce the same result, considering the cache key.A
nullkey means the resolver results cannot be cached.
-