Examples of resolveMethodBinding()


Examples of org.eclipse.php.internal.core.ast.nodes.MethodInvocation.resolveMethodBinding()

    ExpressionStatement statement = (ExpressionStatement) program
        .statements().get(2);
    MethodInvocation methodInvocation = (MethodInvocation) statement
        .getExpression();

    IMethodBinding methodBinding = methodInvocation.resolveMethodBinding();
    Assert.assertNotNull(methodBinding);
    Assert.assertTrue(methodBinding.getName().equals("foo"));

    ITypeBinding declaringClass = methodBinding.getDeclaringClass();
    Assert.assertNotNull(declaringClass);
View Full Code Here

Examples of org.eclipse.php.internal.core.ast.nodes.StaticMethodInvocation.resolveMethodBinding()

    ExpressionStatement statement = (ExpressionStatement) program
        .statements().get(1);
    StaticMethodInvocation staticMethodInvocation = (StaticMethodInvocation) statement
        .getExpression();

    IMethodBinding methodBinding = staticMethodInvocation
        .resolveMethodBinding();

    Assert.assertNotNull(methodBinding);
    Assert.assertTrue(methodBinding.isConstructor() == false);
    Assert.assertTrue(methodBinding.getName().equals("foo"));
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.