dk.brics.string.intermediate
Class BasicUnaryOp
java.lang.Object
  
dk.brics.string.intermediate.Statement
      
dk.brics.string.intermediate.BasicUnaryOp
- All Implemented Interfaces: 
 - Comparable<Statement>
 
public class BasicUnaryOp
- extends Statement
 
Applies a unary operation to the from variable (without modifying it)
 and puts the result into the to variable.
 
 There are no restrictions on the types of the input and output variables.
- Author:
 
  - Asger
 
 
 
 
 
 
from
public Variable from
op
public UnaryOperation op
to
public Variable to
BasicUnaryOp
public BasicUnaryOp(Variable to,
                    Variable from,
                    UnaryOperation 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.