|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectedu.rice.cs.cunit.threadCheck.XMLAnnotUtils
public class XMLAnnotUtils
Utilities to write annotations to an XML configuration.
Nested Class Summary | |
---|---|
static class |
XMLAnnotUtils.AnnotationToXML
Utilities for putting annotations into an XML configuration. |
static class |
XMLAnnotUtils.ClassBased
Utilities for working with class-based thread checker definitions ( |
static class |
XMLAnnotUtils.ConcurrentyDefinitions
Class that maintains a map between invariants and definitions. |
Field Summary | |
---|---|
private static java.lang.String |
CD_PREFIX_NOSLASH
Definition of DEFALT_XML_CONC_DEF_PATH_PREFIX without the trailing '/' |
Constructor Summary | |
---|---|
XMLAnnotUtils()
|
Method Summary | |
---|---|
static XMLConfig |
convertConcDefsToClassBasedXML(XMLAnnotUtils.ConcurrentyDefinitions defsAccum)
Convert the map between invariants and definitions back to a class-based XML configuration ( |
static XMLConfig |
convertConcDefsToConcDefBasedXML(XMLAnnotUtils.ConcurrentyDefinitions defsAccum)
Convert the map between invariants and definitions back to XML concurrency definitions ( |
static XMLConfig |
convertXMLToClassBasedXML(XMLConfig xc)
Convert an XML thread checker configuration to a class-based representation ( |
static XMLAnnotUtils.ConcurrentyDefinitions |
convertXMLToConcDefs(XMLConfig xc)
Convert XML concurrency definitions into a map between invariants and definitions. |
static XMLConfig |
convertXMLToConcDefXML(XMLConfig xc)
Convert an XML thread checker configuration to an XML concurrency definition configuration ( |
static AAddThreadCheckStrategy |
createDummy()
Creates enough of a dummy AAddThreadCheckStrategy to let us do our work. |
static XMLConfig |
createEmptyXMLAnnotaations()
Create an empty set of XML annotations. |
static XMLConfig |
createEmptyXMLConcDefs()
Create an empty set of XML concurrency definitions. |
static XMLAnnotUtils.ConcurrentyDefinitions |
joinXMLConcDefs(XMLConfig xc,
XMLAnnotUtils.ConcurrentyDefinitions defsAccum)
Add the XML concurrency definitions in xc to the ones already in the accumulator. |
static XMLConfig |
joinXMLConcDefs(XMLConfig concDef1,
XMLConfig concDef2)
Join the two XML concurrency definitions This works for both |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
private static final java.lang.String CD_PREFIX_NOSLASH
Constructor Detail |
---|
public XMLAnnotUtils()
Method Detail |
---|
public static XMLAnnotUtils.ConcurrentyDefinitions convertXMLToConcDefs(XMLConfig xc)
xc
- new XML concurrency definitions
public static XMLConfig joinXMLConcDefs(XMLConfig concDef1, XMLConfig concDef2)
concDef1
- first XML fileconcDef2
- second XML file
public static XMLConfig convertConcDefsToConcDefBasedXML(XMLAnnotUtils.ConcurrentyDefinitions defsAccum)
defsAccum
- accumulated map
public static XMLConfig convertConcDefsToClassBasedXML(XMLAnnotUtils.ConcurrentyDefinitions defsAccum)
defsAccum
- accumulated map
public static XMLAnnotUtils.ConcurrentyDefinitions joinXMLConcDefs(XMLConfig xc, XMLAnnotUtils.ConcurrentyDefinitions defsAccum)
xc
- new XML concurrency definitionsdefsAccum
- accumulator of all the invariants and definitions
public static XMLConfig convertXMLToClassBasedXML(XMLConfig xc)
xc
- input XML thread checker configuration
public static XMLConfig convertXMLToConcDefXML(XMLConfig xc)
xc
- input XML thread checker configuration
public static AAddThreadCheckStrategy createDummy()
public static XMLConfig createEmptyXMLConcDefs()
public static XMLConfig createEmptyXMLAnnotaations()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |