dk.brics.xact.analysis.flowgraph.statements
Class CopyStm

java.lang.Object
  extended by dk.brics.xact.analysis.flowgraph.Entity
      extended by dk.brics.xact.analysis.flowgraph.Statement
          extended by dk.brics.xact.analysis.flowgraph.statements.Assignment
              extended by dk.brics.xact.analysis.flowgraph.statements.InstanceAssignment
                  extended by dk.brics.xact.analysis.flowgraph.statements.CopyStm

public class CopyStm
extends InstanceAssignment

Assignment of Element.copy(AttrNode, XML, XML) and variants.


Nested Class Summary
static class CopyStm.Kind
           
 
Constructor Summary
CopyStm(CopyStm.Kind kind, Variable dest, Variable base, Variable firstchild, Variable firstattr, Variable nextnode, Origin origin)
          Constructs a new CopyStm object.
 
Method Summary
 Variable getFirstAttr()
          Returns the first-attr variable, or null if none is available.
 Variable getFirstChild()
          Returns the first-child variable, or null if none is available.
 CopyStm.Kind getKind()
          Returns the kind.
 Variable getNextNode()
          Returns the next-node variable, or null if none is available.
 String getOpName()
          Returns the name of the operation.
 void setFirstAttr(Variable firstattr)
          Sets the first-attr variable.
 void setFirstChild(Variable firstchild)
          Sets the first-child variable.
 void setNextNode(Variable nextnode)
          Sets the next-node variable.
 String toString()
          Returns a textual description of the statement.
 void visitBy(StatementVisitor v)
          Visits this statement by the given visitor.
 
Methods inherited from class dk.brics.xact.analysis.flowgraph.statements.InstanceAssignment
getBase, setBase
 
Methods inherited from class dk.brics.xact.analysis.flowgraph.statements.Assignment
getDest, setDest
 
Methods inherited from class dk.brics.xact.analysis.flowgraph.Entity
getOrigin
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

CopyStm

public CopyStm(CopyStm.Kind kind,
               Variable dest,
               Variable base,
               Variable firstchild,
               Variable firstattr,
               Variable nextnode,
               Origin origin)
Constructs a new CopyStm object. firstchild, firstattr and nextnode can be null.

Method Detail

getFirstAttr

public Variable getFirstAttr()
Returns the first-attr variable, or null if none is available.


getFirstChild

public Variable getFirstChild()
Returns the first-child variable, or null if none is available.


getKind

public CopyStm.Kind getKind()
Returns the kind.


getNextNode

public Variable getNextNode()
Returns the next-node variable, or null if none is available.


getOpName

public String getOpName()
Description copied from class: Statement
Returns the name of the operation.

Specified by:
getOpName in class Statement

setFirstAttr

public void setFirstAttr(Variable firstattr)
Sets the first-attr variable.


setFirstChild

public void setFirstChild(Variable firstchild)
Sets the first-child variable.


setNextNode

public void setNextNode(Variable nextnode)
Sets the next-node variable.


toString

public String toString()
Description copied from class: Statement
Returns a textual description of the statement. This includes the origin and other statically available information.

Overrides:
toString in class Assignment

visitBy

public void visitBy(StatementVisitor v)
Description copied from class: Statement
Visits this statement by the given visitor.

Specified by:
visitBy in class Statement


Copyright © 2005-2011 Aarhus University.