Types

Interface Types

public interface Types

Utility methods for operating on types.

Compatibility Note: Methods may be added to this interface in future releases of the platform.

Since:
1.6
See Also:
ProcessingEnvironment.getTypeUtils()

Methods

asElement

Element asElement(TypeMirror t)

Returns the element corresponding to a type. The type may be a DeclaredType or TypeVariable. Returns null if the type is not one with a corresponding element.

Parameters:
t - the type to map to an element
Returns:
the element correspondi