1.1 --- a/src/share/classes/javax/lang/model/element/ExecutableElement.java Mon Mar 18 14:40:32 2013 -0700 1.2 +++ b/src/share/classes/javax/lang/model/element/ExecutableElement.java Mon Mar 18 18:33:13 2013 -0700 1.3 @@ -1,5 +1,5 @@ 1.4 /* 1.5 - * Copyright (c) 2005, 2012, Oracle and/or its affiliates. All rights reserved. 1.6 + * Copyright (c) 2005, 2013, Oracle and/or its affiliates. All rights reserved. 1.7 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 1.8 * 1.9 * This code is free software; you can redistribute it and/or modify it 1.10 @@ -69,6 +69,25 @@ 1.11 List<? extends VariableElement> getParameters(); 1.12 1.13 /** 1.14 + * Returns the receiver type of this executable, 1.15 + * or {@link javax.lang.model.type.NoType NoType} with 1.16 + * kind {@link javax.lang.model.type.TypeKind#NONE NONE} 1.17 + * if the executable has no receiver type. 1.18 + * 1.19 + * An executable which is an instance method, or a constructor of an 1.20 + * inner class, has a receiver type derived from the {@linkplain 1.21 + * #getEnclosingElement declaring type}. 1.22 + * 1.23 + * An executable which is a static method, or a constructor of a 1.24 + * non-inner class, or an initializer (static or instance), has no 1.25 + * receiver type. 1.26 + * 1.27 + * @return the receiver type of this executable 1.28 + * @since 1.8 1.29 + */ 1.30 + TypeMirror getReceiverType(); 1.31 + 1.32 + /** 1.33 * Returns {@code true} if this method or constructor accepts a variable 1.34 * number of arguments and returns {@code false} otherwise. 1.35 *