Package edu.cmu.cs.crystal.tac.model

Examples of edu.cmu.cs.crystal.tac.model.BinaryOperator


  }

  public TACInstruction create(
      Assignment node,
      IEclipseVariableQuery eclipseVariableQuery) {
    BinaryOperator operator = null// null indicates "normal" assignment
    if(Assignment.Operator.BIT_AND_ASSIGN.equals(node.getOperator()))
      operator = BinaryOperator.BITWISE_AND;
    else if(Assignment.Operator.BIT_OR_ASSIGN.equals(node.getOperator()))
      operator = BinaryOperator.BITWISE_OR;
    else if(Assignment.Operator.BIT_XOR_ASSIGN.equals(node.getOperator()))
View Full Code Here


  }

  public TACInstruction create(
      InfixExpression node,
      IEclipseVariableQuery eclipseVariableQuery) {
    BinaryOperator operator = null;
    if(InfixExpression.Operator.AND.equals(node.getOperator()))
      operator = BinaryOperator.BITWISE_AND;
    else if(InfixExpression.Operator.CONDITIONAL_AND.equals(node.getOperator()))
      return new EclipseMergeHelper(node, eclipseVariableQuery);
    else if(InfixExpression.Operator.CONDITIONAL_OR.equals(node.getOperator()))
View Full Code Here

    return new LoadLiteralInstructionImpl(node, node.getToken(), eclipseVariableQuery);
  }

  public TACInstruction create(PostfixExpression node,
      IEclipseVariableQuery eclipseVariableQuery) {
    BinaryOperator operator;
    if(PostfixExpression.Operator.DECREMENT.equals(node.getOperator()))
      operator = BinaryOperator.ARIT_SUBTRACT;
    else if(PostfixExpression.Operator.INCREMENT.equals(node.getOperator()))
      operator = BinaryOperator.ARIT_ADD;
    else
View Full Code Here

TOP

Related Classes of edu.cmu.cs.crystal.tac.model.BinaryOperator

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.