public final class DocumentIndex extends Object
conformance/run.py, Index). Stage
REFERENCE reports duplicate and dangling references itself.| Modifier and Type | Field and Description |
|---|---|
static List<String> |
MODULE_MEMBERS
The module collections of the document root.
|
| Constructor and Description |
|---|
DocumentIndex(Map<?,?> doc) |
| Modifier and Type | Method and Description |
|---|---|
List<Map<?,?>> |
all(String kind)
Every object of a kind, ordered by reference.
|
Map<?,?> |
document() |
Map<?,?> |
get(String kind,
Object ref)
The object of this kind with this reference, or null.
|
Map<?,?> |
graph()
The ExplainGraph object, or an empty map.
|
boolean |
hasGraph()
True when the document has a non-empty ExplainGraph object.
|
static Long |
intRef(Object value)
A document-local reference: an integer (not a boolean), as a Long; null for anything else.
|
static List<Map<?,?>> |
items(Object value)
The objects of a JSON array; anything else, and every non-object element, is skipped.
|
public static final List<String> MODULE_MEMBERS
public DocumentIndex(Map<?,?> doc)
public static List<Map<?,?>> items(Object value)
public static Long intRef(Object value)
public Map<?,?> get(String kind, Object ref)
public boolean hasGraph()