--- a/langtools/src/share/classes/javax/lang/model/element/ExecutableElement.java Mon Mar 18 14:40:32 2013 -0700
+++ b/langtools/src/share/classes/javax/lang/model/element/ExecutableElement.java Mon Mar 18 18:33:13 2013 -0700
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2005, 2012, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2005, 2013, 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
@@ -69,6 +69,25 @@
List<? extends VariableElement> getParameters();
/**
+ * Returns the receiver type of this executable,
+ * or {@link javax.lang.model.type.NoType NoType} with
+ * kind {@link javax.lang.model.type.TypeKind#NONE NONE}
+ * if the executable has no receiver type.
+ *
+ * An executable which is an instance method, or a constructor of an
+ * inner class, has a receiver type derived from the {@linkplain
+ * #getEnclosingElement declaring type}.
+ *
+ * An executable which is a static method, or a constructor of a
+ * non-inner class, or an initializer (static or instance), has no
+ * receiver type.
+ *
+ * @return the receiver type of this executable
+ * @since 1.8
+ */
+ TypeMirror getReceiverType();
+
+ /**
* Returns {@code true} if this method or constructor accepts a variable
* number of arguments and returns {@code false} otherwise.
*