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

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


    String str = "<?php class MyClass { const A = 4; } ; /**/MyClass::A;?>";
    Program program = createAndParse(str);

    final ExpressionStatement statement = (ExpressionStatement) program
        .statements().get(2);
    final StaticConstantAccess constantAccess = (StaticConstantAccess) statement
        .getExpression();
    IVariableBinding fieldBinding = (IVariableBinding) constantAccess
        .resolveFieldBinding();

    Assert.assertNotNull(fieldBinding);
    Assert.assertTrue(fieldBinding.isField());
  }
View Full Code Here

TOP

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

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.