| 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.
|
List<Parameter> |
getParameters(ExecutableElement method) |
Type |
getReturnType(ExecutableElement method) |
Parameter |
getSingleParameter(ExecutableElement method) |
List<Type> |
getThrownTypes(ExecutableElement method) |
Type |
getType(Class<?> type) |
Type |
getType(String canonicalName) |
Type |
getType(TypeElement typeElement) |
Type |
getType(TypeMirror mirror) |
public 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 Parameter getSingleParameter(ExecutableElement method)
public List<Parameter> getParameters(ExecutableElement method)
public Type getReturnType(ExecutableElement method)
public List<Type> getThrownTypes(ExecutableElement method)
Copyright © 2012-2014. All Rights Reserved.