Examples of PHPASTMatcher


Examples of org.eclipse.php.internal.core.ast.match.PHPASTMatcher

      throws Exception {

    ASTNode node = getAstNode(matchingStr);
    ASTNode notMatchingNode = getAstNode(notMatchingStr);

    Assert.assertTrue(node.subtreeMatch(new PHPASTMatcher(), node));
    Assert.assertFalse(node.subtreeMatch(new PHPASTMatcher(),
        notMatchingNode));

    Assert.assertFalse(node.subtreeMatch(new PHPASTMatcher(), new Object()));
    Assert.assertFalse(node.subtreeMatch(new PHPASTMatcher(), null));
  }
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.