|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectabk.json.AJsonElement
abk.json.AJsonKeyword
public class AJsonKeyword
Representación como AJsonElement de expresiones literales. Un literal es una cadena de texto que se representa sin comillas.
| Field Summary | |
|---|---|
static AJsonKeyword |
FALSE
Instancia AJsonKeyword correspondiente a false. |
private String |
iLiteral
Valor literal de la palabra clave. |
static AJsonKeyword |
NULL
Instancia AJsonKeyword correspondiente a null. |
static AJsonKeyword |
TRUE
Instancia AJsonKeyword correspondiente a true. |
| Fields inherited from class abk.json.AJsonElement |
|---|
DOT, SEP, UNDEFINED |
| Constructor Summary | |
|---|---|
private |
AJsonKeyword(String literal)
Crea una instancia con el literal dado, o bien el literal "null" si se pasa
null. |
| Method Summary | |
|---|---|
void |
stringify(Appendable sb)
Añade el valor del literal al Appendable que se le pasa. |
static AJsonKeyword |
valueOf(boolean b)
Devuelve la instancia AJsonKeyword correspondiente a un booleano. |
| Methods inherited from class abk.json.AJsonElement |
|---|
byteValue, doubleValue, floatValue, getBasePath, getBoolean, getMapRef, getNumber, getString, intValue, isFalse, isMappeable, isNull, isTrue, jsonify, jsonifySimple, longValue, shortValue, stringify, stringify, toString |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static final AJsonKeyword NULL
null.
public static final AJsonKeyword TRUE
true.
public static final AJsonKeyword FALSE
false.
private String iLiteral
| Constructor Detail |
|---|
private AJsonKeyword(String literal)
"null" si se pasa
null.
literal - Valor que se representará en JSON como una cadena SIN comillas.| Method Detail |
|---|
public static final AJsonKeyword valueOf(boolean b)
b - Valor booleano para recupera la palabra clave JSON.
public void stringify(Appendable sb)
throws IOException
stringify in class AJsonElementsb - Objeto al que se añade el literal.
IOException - si se produce un error de la capa de transporte.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||