dk.brics.string.intermediate
Class BasicBinaryOp
java.lang.Object
  
dk.brics.string.intermediate.Statement
      
dk.brics.string.intermediate.BasicBinaryOp
- All Implemented Interfaces: 
 - Comparable<Statement>
 
public class BasicBinaryOp
- extends Statement
 
Applies a binary operation to the first and second variables (without modifying them)
 and puts the result into the to variable.
 
 There are no restrictions on the types of the input and output variables.
- Author:
 
  - Asger
 
 
 
 
 
 
first
public Variable first
op
public BinaryOperation op
second
public Variable second
to
public Variable to
BasicBinaryOp
public BasicBinaryOp(Variable to,
                     Variable first,
                     Variable second,
                     BinaryOperation op)
visitBy
public void visitBy(StatementVisitor v)
- Description copied from class: 
Statement 
- Visit this statement by the given statement visitor.
 This will invoke the corresponding method in the visitor.
- Specified by:
 visitBy in class Statement
 
- Parameters:
 v - the visitor.
 
 
                 Copyright © 2003-2009 Anders Møller, Aske Simon Christensen, Asger Feldthaus.