|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectedu.mit.csail.sdg.alloy4compiler.translator.A4SolutionReader
public final class A4SolutionReader
This helper class contains helper routines for reading an A4Solution object from an XML file.
| Method Summary | |
|---|---|
static A4Solution |
read(java.lang.Iterable<Sig> sigs,
XMLNode xml)
Parse the XML element into an AlloyInstance. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public static A4Solution read(java.lang.Iterable<Sig> sigs,
XMLNode xml)
throws Err
The list of sigs, if not null, will be used as the sigs (and their fields) that we expect to exist;
if there's a sig or field X in the list but not in the XML, then X's tupleset will be regarded as empty;
if there's a sig or field X in the XML but not in the list, then X (and its value in XML file) is added to the solution.
Err
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||