Community
Participate
Working Groups
*
* Contributors:
* IBM Corporation - initial API and implementation
* Jesper Steen Moller - minor JavaDoc for bug 389787
*******************************************************************************/
package org.eclipse.jdt.core.dom;
* Note that bindings are generally unavailable unless requested when the
* AST is being built.
* </p>
* <p>
* Note that the binding returned is based on how the construct is is resolved,
* in context. For instance, if the expression <code>obj.field</code> is a field reference
* to <code>field</code> inside the class A, the type binding returned for <code>obj</code> would
* return a binding for A', even if the declared type of obj was a subclass of A, satisfying
* <code>fieldAccess.getExpression().resolveTypeBinding()
* == fieldAccess.resolveFieldBinding().getDeclaringClass()</code>
* @return the binding for the type of this expression, or
* <code>null</code> if the type cannot be resolved
*/