List of usage examples for org.eclipse.jdt.core.dom SuperMethodInvocation getProperty
public final Object getProperty(String propertyName)
null
if none. From source file:org.eclipse.wb.internal.core.utils.ast.AstNodeUtils.java
License:Open Source License
/** * @param invocation//w w w. j a va 2 s . c o m * the not <code>null</code> {@link SuperMethodInvocation}. * * @return not <code>null</code> {@link IMethodBinding} for given {@link SuperMethodInvocation}. */ public static IMethodBinding getMethodBinding(SuperMethodInvocation invocation) { Assert.isNotNull(invocation); // try to get binding from property (copy of binding added earlier) { IMethodBinding binding = (IMethodBinding) invocation.getProperty(AstParser.KEY_METHOD_BINDING); if (binding != null) { return binding; } } // get standard binding return invocation.resolveMethodBinding(); }