public abstract TypeMirror getEnclosingType ()

Returns the type of the innermost enclosing instance or a NoType of kind NONE if there is no enclosing instance. Only types corresponding to inner classes have an enclosing instance.

Returns:  a type mirror for the enclosing type

@jls 8.1.3 Inner Classes and Enclosing Instances
@jls 15.9.2 Determining Enclosing Instances