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

Examples of org.eclipse.php.internal.core.compiler.ast.nodes.InfixExpression


    super(goal);
  }

  public IGoal[] init() {
    ExpressionTypeGoal typedGoal = (ExpressionTypeGoal) goal;
    InfixExpression infixExpression = (InfixExpression) typedGoal
        .getExpression();
    int operator = infixExpression.getOperatorType();
    switch (operator) {
    case InfixExpression.OP_IS_IDENTICAL:
    case InfixExpression.OP_IS_NOT_IDENTICAL:
    case InfixExpression.OP_IS_EQUAL:
    case InfixExpression.OP_IS_NOT_EQUAL:
View Full Code Here


 
  private void resolveNamespace(ArrayElement element) {
   
    if (element.getValue() instanceof InfixExpression) {
     
      InfixExpression infix = (InfixExpression) element.getValue();
     
      try {

        if (!(infix.getLeft() instanceof Scalar) || !(infix.getRight() instanceof Scalar)) {
          return;
        }
       
        Scalar left = (Scalar) infix.getLeft();       
        Scalar right = (Scalar) infix.getRight();
       
        if ("__DIR__".equals(left.getValue())) {
                   
          String rightPath = right.getValue().replace("'", "").replace("\"", "").replaceFirst("/", "");
          paths.add(path.append(rightPath));
View Full Code Here

TOP

Related Classes of org.eclipse.php.internal.core.compiler.ast.nodes.InfixExpression

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.