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

Public Member Functions

override Enumerator GetEnumerator ()
 
 JSONString (string aData)
 
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 ()
 

Properties

override JSONNodeType Tag [get]
 
override bool IsString [get]
 
override string Value [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]
 

Additional Inherited Members

- 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 inherited from SimpleJSON.JSONNode
static bool forceASCII = false
 
static bool longAsString = false
 
static bool allowLineComments = true
 

Detailed Description

Definition at line 975 of file SimpleJSON.cs.

Constructor & Destructor Documentation

◆ JSONString()

SimpleJSON.JSONString.JSONString ( string aData)

Definition at line 994 of file SimpleJSON.cs.

995 {
996 m_Data = aData;
997 }

Referenced by SimpleJSON.JSONString.Clone(), and SimpleJSON.JSONString.Equals().

Member Function Documentation

◆ Clone()

override JSONNode SimpleJSON.JSONString.Clone ( )
virtual

Reimplemented from SimpleJSON.JSONNode.

Definition at line 998 of file SimpleJSON.cs.

999 {
1000 return new JSONString(m_Data);
1001 }
JSONString(string aData)

References SimpleJSON.JSONString.JSONString().

◆ Equals()

override bool SimpleJSON.JSONString.Equals ( object obj)

Definition at line 1007 of file SimpleJSON.cs.

1008 {
1009 if (base.Equals(obj))
1010 return true;
1011 string s = obj as string;
1012 if (s != null)
1013 return m_Data == s;
1014 JSONString s2 = obj as JSONString;
1015 if (s2 != null)
1016 return m_Data == s2.m_Data;
1017 return false;
1018 }

References SimpleJSON.JSONString.JSONString().

◆ GetEnumerator()

override Enumerator SimpleJSON.JSONString.GetEnumerator ( )

Definition at line 982 of file SimpleJSON.cs.

982{ return new Enumerator(); }

◆ GetHashCode()

override int SimpleJSON.JSONString.GetHashCode ( )

Definition at line 1019 of file SimpleJSON.cs.

1020 {
1021 return m_Data.GetHashCode();
1022 }

Property Documentation

◆ IsString

override bool SimpleJSON.JSONString.IsString
get

Definition at line 980 of file SimpleJSON.cs.

980{ get { return true; } }

◆ Tag

override JSONNodeType SimpleJSON.JSONString.Tag
get

Definition at line 979 of file SimpleJSON.cs.

979{ get { return JSONNodeType.String; } }

◆ Value

override string SimpleJSON.JSONString.Value
getset

Definition at line 985 of file SimpleJSON.cs.

986 {
987 get { return m_Data; }
988 set
989 {
990 m_Data = value;
991 }
992 }

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