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

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


    Program program = createAndParse(str);

    ExpressionStatement statement = (ExpressionStatement) program
        .statements().get(3);
    Assignment assignment = (Assignment) statement.getExpression();
    FieldAccess fieldAccess = (FieldAccess) assignment.getRightHandSide();

    IVariableBinding variableBinding = fieldAccess.resolveFieldBinding();

    Assert.assertTrue(variableBinding.isField() == true);
    Assert.assertTrue(variableBinding.getName().equals("$anotherOne"));
    Assert.assertTrue(variableBinding.getKind() == IBinding.VARIABLE);
  }
View Full Code Here

TOP

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

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.