src/share/classes/javax/lang/model/element/ExecutableElement.java

Print this page

        

*** 1,7 **** /* ! * Copyright (c) 2005, 2009, 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 * under the terms of the GNU General Public License version 2 only, as * published by the Free Software Foundation. Oracle designates this --- 1,7 ---- /* ! * 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 * under the terms of the GNU General Public License version 2 only, as * published by the Free Software Foundation. Oracle designates this
*** 95,100 **** --- 95,113 ---- * with no default value. * * @return the default value, or {@code null} if none */ AnnotationValue getDefaultValue(); + + /** + * Returns the simple name of a constructor, method, or + * initializer. For a constructor, the name {@code "<init>"} is + * returned, for a static initializer, the name {@code "<clinit>"} + * is returned, and for an anonymous class or instance + * initializer, an empty name is returned. + * + * @return the simple name of a constructor, method, or + * initializer + */ + @Override + Name getSimpleName(); }