Example usage for org.eclipse.jdt.core.dom SuperMethodInvocation getProperty

List of usage examples for org.eclipse.jdt.core.dom SuperMethodInvocation getProperty

Introduction

In this page you can find the example usage for org.eclipse.jdt.core.dom SuperMethodInvocation getProperty.

Prototype

public final Object getProperty(String propertyName) 

Source Link

Document

Returns the value of the named property of this node, or null if none.

Usage

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();
}