|
override bool | Inline [get, set] |
|
override JSONNodeType | Tag [get] |
|
override bool | IsObject [get] |
|
override JSONNode | this[string aKey] [get, set] |
|
override JSONNode | this[int aIndex] [get, set] |
|
override int | Count [get] |
|
override IEnumerable< JSONNode > | Children [get] |
|
JSONNodeType | Tag [get] |
|
virtual JSONNode | this[int aIndex] [get, set] |
|
virtual JSONNode | this[string aKey] [get, set] |
|
virtual string | Value [get, set] |
|
virtual int | Count [get] |
|
virtual bool | IsNumber [get] |
|
virtual bool | IsString [get] |
|
virtual bool | IsBoolean [get] |
|
virtual bool | IsNull [get] |
|
virtual bool | IsArray [get] |
|
virtual bool | IsObject [get] |
|
virtual bool | Inline [get, set] |
|
virtual IEnumerable< JSONNode > | Children [get] |
|
IEnumerable< JSONNode > | DeepChildren [get] |
|
IEnumerable< KeyValuePair< string, JSONNode > > | Linq [get] |
|
KeyEnumerator | Keys [get] |
|
ValueEnumerator | Values [get] |
|
virtual double | AsDouble [get, set] |
|
virtual int | AsInt [get, set] |
|
virtual float | AsFloat [get, set] |
|
virtual bool | AsBool [get, set] |
|
virtual long | AsLong [get, set] |
|
virtual JSONArray | AsArray [get] |
|
virtual JSONObject | AsObject [get] |
|
Definition at line 804 of file SimpleJSON.cs.
◆ Add()
override void SimpleJSON.JSONObject.Add |
( |
string | aKey, |
|
|
JSONNode | aItem ) |
|
virtual |
◆ Clone()
override JSONNode SimpleJSON.JSONObject.Clone |
( |
| ) |
|
|
virtual |
Reimplemented from SimpleJSON.JSONNode.
Definition at line 913 of file SimpleJSON.cs.
914 {
915 var node = new JSONObject();
916 foreach (var n in m_Dict)
917 {
918 node.Add(n.Key, n.Value.Clone());
919 }
920 return node;
921 }
◆ GetEnumerator()
override Enumerator SimpleJSON.JSONObject.GetEnumerator |
( |
| ) |
|
Definition at line 818 of file SimpleJSON.cs.
818{ return new Enumerator(m_Dict.GetEnumerator()); }
◆ GetValueOrDefault()
override JSONNode SimpleJSON.JSONObject.GetValueOrDefault |
( |
string | aKey, |
|
|
JSONNode | aDefault ) |
|
virtual |
Reimplemented from SimpleJSON.JSONNode.
Definition at line 928 of file SimpleJSON.cs.
929 {
930 JSONNode res;
931 if (m_Dict.TryGetValue(aKey, out res))
932 return res;
933 return aDefault;
934 }
◆ HasKey()
override bool SimpleJSON.JSONObject.HasKey |
( |
string | aKey | ) |
|
|
virtual |
◆ Remove() [1/3]
override JSONNode SimpleJSON.JSONObject.Remove |
( |
int | aIndex | ) |
|
|
virtual |
◆ Remove() [2/3]
◆ Remove() [3/3]
override JSONNode SimpleJSON.JSONObject.Remove |
( |
string | aKey | ) |
|
|
virtual |
◆ Children
override IEnumerable<JSONNode> SimpleJSON.JSONObject.Children |
|
get |
Definition at line 936 of file SimpleJSON.cs.
937 {
938 get
939 {
940 foreach (KeyValuePair<string, JSONNode> N in m_Dict)
941 yield return N.Value;
942 }
943 }
◆ Count
override int SimpleJSON.JSONObject.Count |
|
get |
Definition at line 860 of file SimpleJSON.cs.
861 {
862 get { return m_Dict.Count; }
863 }
◆ Inline
override bool SimpleJSON.JSONObject.Inline |
|
getset |
Definition at line 809 of file SimpleJSON.cs.
810 {
811 get { return inline; }
812 set { inline = value; }
813 }
◆ IsObject
override bool SimpleJSON.JSONObject.IsObject |
|
get |
◆ Tag
◆ this[int aIndex]
override JSONNode SimpleJSON.JSONObject.this[int aIndex] |
|
getset |
Definition at line 841 of file SimpleJSON.cs.
842 {
843 get
844 {
845 if (aIndex < 0 || aIndex >= m_Dict.Count)
846 return null;
847 return m_Dict.ElementAt(aIndex).Value;
848 }
849 set
850 {
851 if (value == null)
852 value = JSONNull.CreateOrGet();
853 if (aIndex < 0 || aIndex >= m_Dict.Count)
854 return;
855 string key = m_Dict.ElementAt(aIndex).Key;
856 m_Dict[key] = value;
857 }
858 }
◆ this[string aKey]
override JSONNode SimpleJSON.JSONObject.this[string aKey] |
|
getset |
Definition at line 821 of file SimpleJSON.cs.
822 {
823 get
824 {
825 if (m_Dict.ContainsKey(aKey))
826 return m_Dict[aKey];
827 else
828 return new JSONLazyCreator(this, aKey);
829 }
830 set
831 {
832 if (value == null)
833 value = JSONNull.CreateOrGet();
834 if (m_Dict.ContainsKey(aKey))
835 m_Dict[aKey] = value;
836 else
837 m_Dict.Add(aKey, value);
838 }
839 }
The documentation for this class was generated from the following file:
- C:/Interhaptics/sdk_unity/Interhaptics/Runtime/Platforms/Mobile/Dependencies/UnityCoreHaptics/Plugins/iOS/Editor/SimpleJSON.cs