Modifier and Type | Method and Description |
---|---|
static DataType |
extractFromGeneric(DataTypeLookup lookup,
Class<?> baseClass,
int genericPos,
Type contextType)
Extracts a data type from a type variable at
genericPos of baseClass using
the information of the most specific type contextType . |
static DataType |
extractFromMethodOutput(DataTypeLookup lookup,
Class<?> baseClass,
Method method)
Extracts a data type from a method return type by considering surrounding classes and method
annotation.
|
static DataType |
extractFromMethodParameter(DataTypeLookup lookup,
Class<?> baseClass,
Method method,
int paramPos)
Extracts a data type from a method parameter by considering surrounding classes and parameter
annotation.
|
static DataType |
extractFromType(DataTypeLookup lookup,
DataTypeTemplate template,
Type type)
Extracts a data type from a type without considering surrounding classes but templates.
|
static DataType |
extractFromType(DataTypeLookup lookup,
Type type)
Extracts a data type from a type without considering surrounding classes or templates.
|
public static DataType extractFromType(DataTypeLookup lookup, Type type)
public static DataType extractFromType(DataTypeLookup lookup, DataTypeTemplate template, Type type)
public static DataType extractFromGeneric(DataTypeLookup lookup, Class<?> baseClass, int genericPos, Type contextType)
genericPos
of baseClass
using
the information of the most specific type contextType
.public static DataType extractFromMethodParameter(DataTypeLookup lookup, Class<?> baseClass, Method method, int paramPos)
public static DataType extractFromMethodOutput(DataTypeLookup lookup, Class<?> baseClass, Method method)
Copyright © 2014–2020 The Apache Software Foundation. All rights reserved.