chord.analyses.invk
Class DomI

java.lang.Object
  extended by chord.util.IndexMap<T>
      extended by chord.bddbddb.Dom<T>
          extended by chord.project.analyses.ProgramDom<joeq.Compiler.Quad.Quad>
              extended by chord.analyses.invk.DomI
All Implemented Interfaces:
IClassVisitor, IInvokeInstVisitor, IMethodVisitor, ITask, java.lang.Iterable<joeq.Compiler.Quad.Quad>

public class DomI
extends ProgramDom<joeq.Compiler.Quad.Quad>
implements IInvokeInstVisitor

Domain of method invocation statements.

Author:
Mayur Naik (mhn@cs.stanford.edu)

Field Summary
protected  DomM domM
           
 
Fields inherited from class chord.project.analyses.ProgramDom
consumes
 
Fields inherited from class chord.bddbddb.Dom
name
 
Fields inherited from class chord.util.IndexMap
hmap, list
 
Constructor Summary
DomI()
           
 
Method Summary
 void init()
           
 java.lang.String toUniqueString(joeq.Compiler.Quad.Quad q)
           
 java.lang.String toXMLAttrsString(joeq.Compiler.Quad.Quad q)
          Provides the XML attributes string of the specified value.
 void visit(joeq.Class.jq_Class c)
          Visits all classes in the program.
 void visit(joeq.Class.jq_Method m)
          Visits all methods of all classes in the program.
 void visitInvokeInst(joeq.Compiler.Quad.Quad q)
          Visits all method invocation statements in all methods in the program.
 
Methods inherited from class chord.project.analyses.ProgramDom
fill, run, run, save, saveToXMLFile, toString, toXMLElemsString
 
Methods inherited from class chord.bddbddb.Dom
equals, getName, hashCode, print, print, save, setName, toUniqueString
 
Methods inherited from class chord.util.IndexMap
add, addAll, clear, contains, get, getOrAdd, indexOf, iterator, size
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface chord.project.ITask
getName, setName
 

Field Detail

domM

protected DomM domM
Constructor Detail

DomI

public DomI()
Method Detail

init

public void init()
Overrides:
init in class ProgramDom<joeq.Compiler.Quad.Quad>

visit

public void visit(joeq.Class.jq_Class c)
Description copied from interface: IClassVisitor
Visits all classes in the program.

Specified by:
visit in interface IClassVisitor
Parameters:
c - A class.

visit

public void visit(joeq.Class.jq_Method m)
Description copied from interface: IMethodVisitor
Visits all methods of all classes in the program.

Specified by:
visit in interface IMethodVisitor
Parameters:
m - A method.

visitInvokeInst

public void visitInvokeInst(joeq.Compiler.Quad.Quad q)
Description copied from interface: IInvokeInstVisitor
Visits all method invocation statements in all methods in the program.

Specified by:
visitInvokeInst in interface IInvokeInstVisitor
Parameters:
q - A method call statement.

toUniqueString

public java.lang.String toUniqueString(joeq.Compiler.Quad.Quad q)
Overrides:
toUniqueString in class Dom<joeq.Compiler.Quad.Quad>

toXMLAttrsString

public java.lang.String toXMLAttrsString(joeq.Compiler.Quad.Quad q)
Description copied from class: ProgramDom
Provides the XML attributes string of the specified value. Subclasses may override this method if necessary.

Overrides:
toXMLAttrsString in class ProgramDom<joeq.Compiler.Quad.Quad>
Parameters:
q - A value.
Returns:
The XML attributes string of the specified value. It is the empty string by default.
See Also:
ProgramDom.saveToXMLFile()