public class TypeFactory
extends java.lang.Object
Type instances.| Constructor and Description |
|---|
TypeFactory(javax.lang.model.util.Elements elementUtils,
javax.lang.model.util.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.
|
java.util.List<Parameter> |
getParameters(javax.lang.model.element.ExecutableElement method) |
Type |
getReturnType(javax.lang.model.element.ExecutableElement method) |
Parameter |
getSingleParameter(javax.lang.model.element.ExecutableElement method) |
java.util.List<Type> |
getThrownTypes(javax.lang.model.element.ExecutableElement method) |
Type |
getType(java.lang.Class<?> type) |
Type |
getType(java.lang.String canonicalName) |
Type |
getType(javax.lang.model.element.TypeElement typeElement) |
Type |
getType(javax.lang.model.type.TypeMirror mirror) |
public TypeFactory(javax.lang.model.util.Elements elementUtils,
javax.lang.model.util.Types typeUtils)
public Type getType(java.lang.Class<?> type)
public Type getType(java.lang.String canonicalName)
public Type getType(javax.lang.model.element.TypeElement typeElement)
public Type getType(javax.lang.model.type.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(javax.lang.model.element.ExecutableElement method)
public java.util.List<Parameter> getParameters(javax.lang.model.element.ExecutableElement method)
public Type getReturnType(javax.lang.model.element.ExecutableElement method)
public java.util.List<Type> getThrownTypes(javax.lang.model.element.ExecutableElement method)
Copyright © 2012-2014. All Rights Reserved.