dk.brics.string.intermediate
Class FieldAssignment

java.lang.Object
  extended by dk.brics.string.intermediate.Statement
      extended by dk.brics.string.intermediate.FieldAssignment
All Implemented Interfaces:
FieldStatement, Comparable<Statement>

public class FieldAssignment
extends Statement
implements FieldStatement

Assignment from a local varable to a field.

See Also:
Field

Constructor Summary
FieldAssignment(Field field, Variable from)
           
 
Method Summary
 Field getField()
          Returns the field being assigned to.
 Variable getFrom()
          Returns the variable being assigned from.
 Variable getTo()
          Returns the weak variable of the field being assigned to.
 void visitBy(StatementVisitor v)
          Visit this statement by the given statement visitor.
 
Methods inherited from class dk.brics.string.intermediate.Statement
addSucc, addSuccIfAbsent, compareTo, getIndex, getMethod, getPreds, getSuccs, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

FieldAssignment

public FieldAssignment(Field field,
                       Variable from)
Method Detail

getField

public Field getField()
Returns the field being assigned to.

Specified by:
getField in interface FieldStatement
Returns:
a field

getFrom

public Variable getFrom()
Returns the variable being assigned from.


getTo

public Variable getTo()
Returns the weak variable of the field being assigned to.


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.