Examples of IFunctionBinding


Examples of org.eclipse.php.internal.core.ast.nodes.IFunctionBinding

    Program program = createAndParse(str);

    FunctionDeclaration functionDeclaration = (FunctionDeclaration) program
        .statements().get(0);

    IFunctionBinding functionBinding = functionDeclaration
        .resolveFunctionBinding();

    Assert.assertNotNull(functionBinding);
    Assert.assertTrue(functionBinding.getName().equals("foo"));

    ITypeBinding[] returnTypes = functionBinding.getReturnType();
    Assert.assertTrue(returnTypes[0].getName().equals("SoapClient"));
  }
View Full Code Here

Examples of org.eclipse.php.internal.core.ast.nodes.IFunctionBinding

    ExpressionStatement statement = (ExpressionStatement) program
        .statements().get(1);
    FunctionInvocation functionInvocation = (FunctionInvocation) statement
        .getExpression();

    IFunctionBinding functionBinding = functionInvocation
        .resolveFunctionBinding();
    Assert.assertNotNull(functionBinding);
    Assert.assertTrue(functionBinding.getName().equals("foo"));
    Assert.assertTrue(functionBinding.isVarargs() == false);
  }
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.