/** * @param e * @return body of element or null if this element has no body */ static CtElement getBody(CtElement e) { if (e instanceof CtBodyHolder) { return ((CtBodyHolder) e).getBody(); } return null; }
@SuppressWarnings("unchecked") @Override public <T, U> U getValue(T element) { return ((U) ((Object) (castTarget(element).getBody()))); }