public abstract Element getEnclosingElement ()

Returns the innermost element within which this element is, loosely speaking, enclosed.

Returns:  the enclosing element, or null if there is none

See also:
Elements.getPackageOf

@revised 9
@spec JPMS