public class MyTypes
extends java.lang.Object
| Modifier and Type | Method and Description |
|---|---|
static javax.lang.model.type.DeclaredType |
asDeclaredType(javax.lang.model.type.TypeMirror typeM)
Cast a TypeMirror to an DeclaredType.
|
public static javax.lang.model.type.DeclaredType asDeclaredType(javax.lang.model.type.TypeMirror typeM)
typeM - the TypeMirror to castjava.lang.IllegalArgumentException - if the TypeMirror doesn't represent an DeclaredType