Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
View | Details | Raw Unified | Return to bug 389787 | Differences between
and this patch

Collapse All | Expand All

(-)dom/org/eclipse/jdt/core/dom/Expression.java (-2 / +13 lines)
Lines 1-5 Link Here
1
/*******************************************************************************
1
/*******************************************************************************
2
 * Copyright (c) 2000, 2011 IBM Corporation and others.
2
 * Copyright (c) 2000, 2013 IBM Corporation and others.
3
 * All rights reserved. This program and the accompanying materials
3
 * All rights reserved. This program and the accompanying materials
4
 * are made available under the terms of the Eclipse Public License v1.0
4
 * are made available under the terms of the Eclipse Public License v1.0
5
 * which accompanies this distribution, and is available at
5
 * which accompanies this distribution, and is available at
Lines 7-12 Link Here
7
 *
7
 *
8
 * Contributors:
8
 * Contributors:
9
 *     IBM Corporation - initial API and implementation
9
 *     IBM Corporation - initial API and implementation
10
 *     Jesper Steen Moller - minor JavaDoc for bug 389787
10
 *******************************************************************************/
11
 *******************************************************************************/
11
12
12
package org.eclipse.jdt.core.dom;
13
package org.eclipse.jdt.core.dom;
Lines 100-106 Link Here
100
	 * Note that bindings are generally unavailable unless requested when the
101
	 * Note that bindings are generally unavailable unless requested when the
101
	 * AST is being built.
102
	 * AST is being built.
102
	 * </p>
103
	 * </p>
103
	 *
104
	 * <p>
105
	 * Note that the binding is resolved based on the context of the expression.
106
	 * For example, if the expression <code>obj.field1</code> is a field
107
	 * reference to <code>field1</code> inside the class <code>A</code>, the
108
	 * type binding returned for <code>obj</code> would be a binding for
109
	 * <code>A</code>, even if <code>obj</code> was declared as a subclass of
110
	 * <code>A</code>.
111
	 * <br> 
112
	 * In this case, <code>fieldAccess.getExpression().resolveTypeBinding()
113
	 * == fieldAccess.resolveFieldBinding().getDeclaringClass()</code>
114
	 * </p>
104
	 * @return the binding for the type of this expression, or
115
	 * @return the binding for the type of this expression, or
105
	 *    <code>null</code> if the type cannot be resolved
116
	 *    <code>null</code> if the type cannot be resolved
106
	 */
117
	 */

Return to bug 389787