--- old/src/share/classes/javax/lang/model/element/TypeElement.java 2011-01-28 16:52:16.000000000 -0800 +++ new/src/share/classes/javax/lang/model/element/TypeElement.java 2011-01-28 16:52:15.000000000 -0800 @@ -1,5 +1,5 @@ /* - * Copyright (c) 2005, 2009, Oracle and/or its affiliates. All rights reserved. + * Copyright (c) 2005, 2011, Oracle and/or its affiliates. All rights reserved. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * * This code is free software; you can redistribute it and/or modify it @@ -105,6 +105,19 @@ */ Name getQualifiedName(); + + /** + * Returns the simple name of this type element. + * + * For an anonymous class, an empty name is returned. + * + * @return the simple name of this class or interface, + * an empty name for an anonymous class + * + */ + @Override + Name getSimpleName(); + /** * Returns the direct superclass of this type element. * If this type element represents an interface or the class @@ -132,4 +145,16 @@ * if there are none */ List getTypeParameters(); + + + /** + * Returns the package of a top-level type and returns the + * immediately lexically enclosing element for a {@linkplain + * NestingKind#isNested nested} type. + * + * @return the package of a top-level type, the immediately + * lexically enclosing element for a nested type + */ + @Override + Element getEnclosingElement(); }