Modifier and Type | Class and Description |
---|---|
static class |
Key.KeyPrecedenceComparator |
Modifier and Type | Field and Description |
---|---|
protected java.util.Set<Key> |
children |
private boolean |
isArrayOutput |
private static Key.KeyPrecedenceComparator |
keyComparator |
protected java.util.List<java.lang.String> |
keyStrings |
protected java.lang.Object |
literalValue |
private OPS |
op |
private static java.lang.String |
OR_INPUT_REGEX |
private int |
orCount |
private int |
outputArraySize |
protected java.lang.String |
rawKey |
Constructor and Description |
---|
Key(java.lang.String rawJsonKey,
java.lang.Object spec) |
Modifier and Type | Method and Description |
---|---|
protected abstract void |
applyChild(java.lang.Object container)
Apply this Key to the defaultee.
|
void |
applyChildren(java.lang.Object defaultee)
This is the main "recursive" method.
|
java.lang.Object |
createOutputContainerObject() |
protected abstract int |
getLiteralIntKey() |
OPS |
getOp() |
int |
getOrCount() |
int |
getOutputArraySize() |
boolean |
isArrayOutput() |
static java.util.Set<Key> |
parseSpec(java.util.Map<java.lang.String,java.lang.Object> spec)
Factory-ish method that recursively processes a Map
|
private static java.util.Set<Key> |
processSpec(boolean parentIsArray,
java.util.Map<java.lang.String,java.lang.Object> spec)
Recursively walk the spec input tree.
|
private static final java.lang.String OR_INPUT_REGEX
private static final Key.KeyPrecedenceComparator keyComparator
private boolean isArrayOutput
private OPS op
private int orCount
private int outputArraySize
protected java.util.Set<Key> children
protected java.lang.Object literalValue
protected java.lang.String rawKey
protected java.util.List<java.lang.String> keyStrings
public static java.util.Set<Key> parseSpec(java.util.Map<java.lang.String,java.lang.Object> spec)
spec
- Simple Jackson default Mapprivate static java.util.Set<Key> processSpec(boolean parentIsArray, java.util.Map<java.lang.String,java.lang.Object> spec)
public void applyChildren(java.lang.Object defaultee)
protected abstract int getLiteralIntKey()
protected abstract void applyChild(java.lang.Object container)
public int getOrCount()
public boolean isArrayOutput()
public OPS getOp()
public int getOutputArraySize()
public java.lang.Object createOutputContainerObject()