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

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


    super(goal);
  }

  public IGoal[] init() {
    ExpressionTypeGoal typedGoal = (ExpressionTypeGoal) goal;
    UnaryOperation unaryOp = (UnaryOperation) typedGoal.getExpression();
    switch (unaryOp.getOperatorType()) {
    case UnaryOperation.OP_MINUS:
    case UnaryOperation.OP_PLUS:
      result = new SimpleType(SimpleType.TYPE_NUMBER);
      break;
    case UnaryOperation.OP_TILDA:
      return new IGoal[] { new ExpressionTypeGoal(goal.getContext(),
          unaryOp.getExpr()) };
    case UnaryOperation.OP_NOT:
      result = new SimpleType(SimpleType.TYPE_BOOLEAN);
      break;
    }
    return IGoal.NO_GOALS;
View Full Code Here

TOP

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

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.