Package org.eclipse.php.internal.core.ast.nodes

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


  public void testInterfaceDeclarationBinding() throws Exception {
    String str = "<?php interface A {} ?>";
    Program program = createAndParse(str);

    InterfaceDeclaration interfaceDeclaration = (InterfaceDeclaration) program
        .statements().get(0);
    ITypeBinding binding = interfaceDeclaration.resolveTypeBinding();

    Assert.assertNotNull(binding);
    Assert.assertTrue(binding.getName().equals("A"));
    Assert.assertTrue(binding.getKind() == IBinding.TYPE);
    Assert.assertTrue(binding.isInterface());
View Full Code Here

TOP

Related Classes of org.eclipse.php.internal.core.ast.nodes.InterfaceDeclaration

Copyright © 2018 www.massapicom. 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.