mirror of https://github.com/gnosygnu/xowa
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
36 lines
1.2 KiB
36 lines
1.2 KiB
/*
|
|
XOWA: the XOWA Offline Wiki Application
|
|
Copyright (C) 2012-2020 gnosygnu@gmail.com
|
|
|
|
XOWA is licensed under the terms of the General Public License (GPL) Version 3,
|
|
or alternatively under the terms of the Apache License Version 2.0.
|
|
|
|
You may use XOWA according to either of these licenses as is most appropriate
|
|
for your project on a case-by-case basis.
|
|
|
|
The terms of each license can be found in the source code repository:
|
|
|
|
GPLv3 License: https://github.com/gnosygnu/xowa/blob/master/LICENSE-GPLv3.txt
|
|
Apache License: https://github.com/gnosygnu/xowa/blob/master/LICENSE-APACHE2.txt
|
|
*/
|
|
package gplx.langs.jsons;
|
|
|
|
import gplx.Bry_bfr;
|
|
import gplx.Object_;
|
|
|
|
public interface Json_itm {
|
|
byte Tid();
|
|
Object Data();
|
|
byte[] Data_bry();
|
|
boolean Data_eq(byte[] comp);
|
|
void Print_as_json(Bry_bfr bfr, int depth);
|
|
}
|
|
class Json_itm_null extends Json_itm_base {
|
|
Json_itm_null() {}
|
|
@Override public byte Tid() {return Json_itm_.Tid__null;}
|
|
@Override public Object Data() {return null;}
|
|
@Override public void Print_as_json(Bry_bfr bfr, int depth) {bfr.Add(Object_.Bry__null);}
|
|
@Override public byte[] Data_bry() {return Object_.Bry__null;}
|
|
public static final Json_itm_null Null = new Json_itm_null();
|
|
}
|