chord.analyses.field
Class DomF

java.lang.Object
  extended by chord.util.IndexMap<T>
      extended by chord.bddbddb.Dom<T>
          extended by chord.project.analyses.ProgramDom<joeq.Class.jq_Field>
              extended by chord.analyses.field.DomF
All Implemented Interfaces:
IClassVisitor, IFieldVisitor, ITask, java.lang.Iterable<joeq.Class.jq_Field>

public class DomF
extends ProgramDom<joeq.Class.jq_Field>
implements IFieldVisitor

Domain of fields.

The 0th element in this domain (null) denotes a distinguished hypothetical field that is regarded as accessed whenever an array element is accessed. This field can be used by analyses that do not distinguish between different elements of the same array.

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

Field Summary
 
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
DomF()
           
 
Method Summary
 void init()
           
 java.lang.String toXMLAttrsString(joeq.Class.jq_Field f)
          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_Field f)
          Visits all fields of all classes 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, 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
 

Constructor Detail

DomF

public DomF()
Method Detail

init

public void init()
Overrides:
init in class ProgramDom<joeq.Class.jq_Field>

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_Field f)
Description copied from interface: IFieldVisitor
Visits all fields of all classes in the program.

Specified by:
visit in interface IFieldVisitor
Parameters:
f - A field.

toXMLAttrsString

public java.lang.String toXMLAttrsString(joeq.Class.jq_Field f)
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.Class.jq_Field>
Parameters:
f - A value.
Returns:
The XML attributes string of the specified value. It is the empty string by default.
See Also:
ProgramDom.saveToXMLFile()