Interhaptics SDK for Unity 1.6
Loading...
Searching...
No Matches
SimpleJSON.JSONNull Class Reference
Inheritance diagram for SimpleJSON.JSONNull:
SimpleJSON.JSONNode

Public Member Functions

override Enumerator GetEnumerator ()
 
override JSONNode Clone ()
 
override bool Equals (object obj)
 
override int GetHashCode ()
 
- Public Member Functions inherited from SimpleJSON.JSONNode
virtual void Add (string aKey, JSONNode aItem)
 
virtual void Add (JSONNode aItem)
 
virtual JSONNode Remove (string aKey)
 
virtual JSONNode Remove (int aIndex)
 
virtual JSONNode Remove (JSONNode aNode)
 
virtual bool HasKey (string aKey)
 
virtual JSONNode GetValueOrDefault (string aKey, JSONNode aDefault)
 
override string ToString ()
 
virtual string ToString (int aIndent)
 
Enumerator GetEnumerator ()
 
override bool Equals (object obj)
 
override int GetHashCode ()
 

Static Public Member Functions

static JSONNull CreateOrGet ()
 
- Static Public Member Functions inherited from SimpleJSON.JSONNode
static implicit operator JSONNode (string s)
 
static implicit operator string (JSONNode d)
 
static implicit operator JSONNode (double n)
 
static implicit operator double (JSONNode d)
 
static implicit operator JSONNode (float n)
 
static implicit operator float (JSONNode d)
 
static implicit operator JSONNode (int n)
 
static implicit operator int (JSONNode d)
 
static implicit operator JSONNode (long n)
 
static implicit operator long (JSONNode d)
 
static implicit operator JSONNode (bool b)
 
static implicit operator bool (JSONNode d)
 
static implicit operator JSONNode (KeyValuePair< string, JSONNode > aKeyValue)
 
static bool operator== (JSONNode a, object b)
 
static bool operator!= (JSONNode a, object b)
 
static JSONNode Parse (string aJSON)
 

Static Public Attributes

static bool reuseSameInstance = true
 
- Static Public Attributes inherited from SimpleJSON.JSONNode
static bool forceASCII = false
 
static bool longAsString = false
 
static bool allowLineComments = true
 

Properties

override JSONNodeType Tag [get]
 
override bool IsNull [get]
 
override string Value [get, set]
 
override bool AsBool [get, set]
 
- Properties inherited from SimpleJSON.JSONNode
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< JSONNodeChildren [get]
 
IEnumerable< JSONNodeDeepChildren [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]
 

Detailed Description

Definition at line 1162 of file SimpleJSON.cs.

Member Function Documentation

◆ Clone()

override JSONNode SimpleJSON.JSONNull.Clone ( )
virtual

Reimplemented from SimpleJSON.JSONNode.

Definition at line 1189 of file SimpleJSON.cs.

1190 {
1191 return CreateOrGet();
1192 }
static JSONNull CreateOrGet()

References SimpleJSON.JSONNull.CreateOrGet().

◆ CreateOrGet()

static JSONNull SimpleJSON.JSONNull.CreateOrGet ( )
static

Definition at line 1166 of file SimpleJSON.cs.

1167 {
1169 return m_StaticInstance;
1170 return new JSONNull();
1171 }
static bool reuseSameInstance

References SimpleJSON.JSONNull.reuseSameInstance.

Referenced by SimpleJSON.JSONArray.Add(), SimpleJSON.JSONObject.Add(), and SimpleJSON.JSONNull.Clone().

◆ Equals()

override bool SimpleJSON.JSONNull.Equals ( object obj)

Definition at line 1194 of file SimpleJSON.cs.

1195 {
1196 if (object.ReferenceEquals(this, obj))
1197 return true;
1198 return (obj is JSONNull);
1199 }

◆ GetEnumerator()

override Enumerator SimpleJSON.JSONNull.GetEnumerator ( )

Definition at line 1176 of file SimpleJSON.cs.

1176{ return new Enumerator(); }

◆ GetHashCode()

override int SimpleJSON.JSONNull.GetHashCode ( )

Definition at line 1200 of file SimpleJSON.cs.

1201 {
1202 return 0;
1203 }

Member Data Documentation

◆ reuseSameInstance

bool SimpleJSON.JSONNull.reuseSameInstance = true
static

Definition at line 1165 of file SimpleJSON.cs.

Referenced by SimpleJSON.JSONNull.CreateOrGet().

Property Documentation

◆ AsBool

override bool SimpleJSON.JSONNull.AsBool
getset

Definition at line 1183 of file SimpleJSON.cs.

1184 {
1185 get { return false; }
1186 set { }
1187 }

◆ IsNull

override bool SimpleJSON.JSONNull.IsNull
get

Definition at line 1175 of file SimpleJSON.cs.

1175{ get { return true; } }

◆ Tag

override JSONNodeType SimpleJSON.JSONNull.Tag
get

Definition at line 1174 of file SimpleJSON.cs.

1174{ get { return JSONNodeType.NullValue; } }

◆ Value

override string SimpleJSON.JSONNull.Value
getset

Definition at line 1178 of file SimpleJSON.cs.

1179 {
1180 get { return "null"; }
1181 set { }
1182 }

The documentation for this class was generated from the following file: