| Constructor and Description |
|---|
TypeFactory(Elements elementUtils,
Types typeUtils) |
| Modifier and Type | Method and Description |
|---|---|
Type |
classTypeOf(Type type)
Returns the Type that represents the declared Class type of the given type.
|
ExecutableType |
getMethodType(TypeElement usedMapper,
ExecutableElement method)
Get the ExecutableType for given method as part of usedMapper.
|
List<Parameter> |
getParameters(ExecutableElement method) |
List<Parameter> |
getParameters(ExecutableType methodType,
ExecutableElement method) |
Type |
getReturnType(ExecutableElement method) |
Type |
getReturnType(ExecutableType method) |
Parameter |
getSingleParameter(ExecutableElement method) |
List<Type> |
getThrownTypes(ExecutableElement method) |
List<Type> |
getThrownTypes(ExecutableType method) |
Type |
getType(Class<?> type) |
Type |
getType(String canonicalName) |
Type |
getType(TypeElement typeElement) |
Type |
getType(TypeMirror mirror) |
boolean |
isTypeAvailable(String canonicalName)
Determines if the type with the given full qualified name is part of the classpath
|
public boolean isTypeAvailable(String canonicalName)
canonicalName - Name of the type to be checked for availabilitypublic Type getType(TypeElement typeElement)
public Type getType(TypeMirror mirror)
public Type classTypeOf(Type type)
java.lang.Integer, it will return the type that represents Class<Integer>.
int, it will return the type that represents Class<Integer>.type - the type to return the declared class type forClass<type>.public ExecutableType getMethodType(TypeElement usedMapper, ExecutableElement method)
usedMapper - method - public Parameter getSingleParameter(ExecutableElement method)
public List<Parameter> getParameters(ExecutableElement method)
public List<Parameter> getParameters(ExecutableType methodType, ExecutableElement method)
public Type getReturnType(ExecutableElement method)
public Type getReturnType(ExecutableType method)
public List<Type> getThrownTypes(ExecutableElement method)
public List<Type> getThrownTypes(ExecutableType method)
Copyright © 2012-2015. All Rights Reserved.