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

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.SetStm

public class SetStm
extends InstanceAssignment

Assignment of XML.set(String, Object) and variants.


Nested Class Summary
static class SetStm.Kind
          Node kinds.
 
Constructor Summary
SetStm(SetStm.Kind kind, Variable dest, Variable base, String xpath, dk.brics.automaton.Automaton stringsrc, Variable xmlsrc, Origin origin)
          Constructs a new SetStm object.
 
Method Summary
 SetStm.Kind getKind()
          Returns the kind.
 String getOpName()
          Returns the name of the operation.
 dk.brics.automaton.Automaton getStringSource()
          Returns the string source automaton.
 Variable getXMLSource()
          Returns the XML source variable.
 String getXPath()
          Returns the XPath expression.
 void setStringSource(dk.brics.automaton.Automaton stringsrc)
           
 void setXMLSource(Variable source)
          Sets the XML source 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

SetStm

public SetStm(SetStm.Kind kind,
              Variable dest,
              Variable base,
              String xpath,
              dk.brics.automaton.Automaton stringsrc,
              Variable xmlsrc,
              Origin origin)
Constructs a new SetStm object. xpath can be null.

Method Detail

getKind

public SetStm.Kind getKind()
Returns the kind.


getOpName

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

Specified by:
getOpName in class Statement

getStringSource

public dk.brics.automaton.Automaton getStringSource()
Returns the string source automaton.


getXMLSource

public Variable getXMLSource()
Returns the XML source variable.


getXPath

public String getXPath()
Returns the XPath expression.


setStringSource

public void setStringSource(dk.brics.automaton.Automaton stringsrc)

setXMLSource

public void setXMLSource(Variable source)
Sets the XML source 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.