public abstract class JsonLiteralImpl extends JsonValueImpl implements JsonLiteral, JsonMember
| Modifier and Type | Class and Description |
|---|---|
static class |
JsonLiteralImpl.Type |
| Modifier and Type | Field and Description |
|---|---|
protected boolean |
cachedValue |
protected String |
cachedValueString |
protected int |
length |
protected String |
literal |
protected int |
offset |
| Modifier | Constructor and Description |
|---|---|
protected |
JsonLiteralImpl(String literal) |
protected |
JsonLiteralImpl(String literal,
int offset,
int length) |
| Modifier and Type | Method and Description |
|---|---|
void |
findAll(PathMatcher matcher,
List<JsonValue> values,
List<String> path) |
JsonValue |
findFirst(PathMatcher matcher,
List<String> path) |
JsonGroup |
group() |
static JsonLiteralImpl |
instance(String literal,
int offset,
int length) |
String |
literal()
String representing literal.
|
void |
remove()
Removes this instance from parent object.
|
void |
setGroup(JsonGroup group) |
String |
stringValue()
String value of this literal.
|
void |
toCompactString(StringBuilder sb) |
void |
toPrettyString(StringBuilder sb,
String prefix,
String indent) |
abstract JsonLiteralImpl.Type |
type() |
asArray, asBoolLiteral, asExpLiteral, asFracLiteral, asIntLiteral, asLiteral, asNullLiteral, asObject, asStringLiteral, findAll, findAllLiterals, findFirst, findFirstLiteral, isArray, isBoolLiteral, isExpLiteral, isFracLiteral, isIntLiteral, isLiteral, isNullLiteral, isObject, isStringLiteral, parent, parentIndex, path, toCompactString, toPrettyStringclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitasArray, asBoolLiteral, asExpLiteral, asFracLiteral, asIntLiteral, asLiteral, asNullLiteral, asObject, asStringLiteral, findAll, findAllLiterals, findFirst, findFirstLiteral, isArray, isBoolLiteral, isExpLiteral, isFracLiteral, isIntLiteral, isLiteral, isNullLiteral, isObject, isStringLiteral, parent, parentIndex, path, toCompactString, toPrettyStringprotected String literal
protected int offset
protected int length
protected boolean cachedValue
protected String cachedValueString
protected JsonLiteralImpl(String literal)
protected JsonLiteralImpl(String literal, int offset, int length)
public JsonGroup group()
group in interface JsonMemberpublic void setGroup(JsonGroup group)
setGroup in interface JsonMemberpublic abstract JsonLiteralImpl.Type type()
public static JsonLiteralImpl instance(String literal, int offset, int length)
public String literal()
JsonLiteralliteral in interface JsonLiteralpublic String stringValue()
JsonLiteralstringValue in interface JsonLiteralpublic void toCompactString(StringBuilder sb)
toCompactString in class JsonValueImplpublic void toPrettyString(StringBuilder sb, String prefix, String indent)
toPrettyString in class JsonValueImplpublic JsonValue findFirst(PathMatcher matcher, List<String> path)
findFirst in class JsonValueImplpublic void findAll(PathMatcher matcher, List<JsonValue> values, List<String> path)
findAll in class JsonValueImplCopyright © 2018. All rights reserved.