객체 내장 객체

객체 객체

모든 객체가 상속되는 기본 객체

상속관계

%0 object object toString() toJSON() Buffer Buffer object->Buffer Cipher Cipher object->Cipher DbConnection DbConnection object->DbConnection Digest Digest object->Digest EventEmitter EventEmitter object->EventEmitter Fiber Fiber object->Fiber FileHandle FileHandle object->FileHandle Handler Handler object->Handler HeapGraphEdge HeapGraphEdge object->HeapGraphEdge HeapGraphNode HeapGraphNode object->HeapGraphNode HeapSnapshot HeapSnapshot object->HeapSnapshot HttpClient HttpClient object->HttpClient HttpCollection HttpCollection object->HttpCollection HttpCookie HttpCookie object->HttpCookie HttpUploadData HttpUploadData object->HttpUploadData Image Image object->Image Iterator Iterator object->Iterator LevelDB LevelDB object->LevelDB Lock Lock object->Lock Message Message object->Message PKey PKey object->PKey Redis Redis object->Redis RedisHash RedisHash object->RedisHash RedisList RedisList object->RedisList RedisSet RedisSet object->RedisSet RedisSortedSet RedisSortedSet object->RedisSortedSet SandBox SandBox object->SandBox Script Script object->Script Smtp Smtp object->Smtp Stat Stat object->Stat Stream Stream object->Stream StringDecoder StringDecoder object->StringDecoder TcpServer TcpServer object->TcpServer TextDecoder TextDecoder object->TextDecoder TextEncoder TextEncoder object->TextEncoder Timer Timer object->Timer UrlObject UrlObject object->UrlObject X509Cert X509Cert object->X509Cert X509Crl X509Crl object->X509Crl X509Req X509Req object->X509Req XmlAttr XmlAttr object->XmlAttr XmlNamedNodeMap XmlNamedNodeMap object->XmlNamedNodeMap XmlNode XmlNode object->XmlNode XmlNodeList XmlNodeList object->XmlNodeList ZipFile ZipFile object->ZipFile MySQL MySQL DbConnection->MySQL Odbc Odbc DbConnection->Odbc SQLite SQLite DbConnection->SQLite ChildProcess ChildProcess EventEmitter->ChildProcess DgramSocket DgramSocket EventEmitter->DgramSocket FSWatcher FSWatcher EventEmitter->FSWatcher LruCache LruCache EventEmitter->LruCache Service Service EventEmitter->Service StatsWatcher StatsWatcher EventEmitter->StatsWatcher WebSocket WebSocket EventEmitter->WebSocket WebView WebView EventEmitter->WebView Worker Worker EventEmitter->Worker Chain Chain Handler->Chain HttpHandler HttpHandler Handler->HttpHandler HttpRepeater HttpRepeater Handler->HttpRepeater Routing Routing Handler->Routing SslHandler SslHandler Handler->SslHandler Condition Condition Lock->Condition Event Event Lock->Event Semaphore Semaphore Lock->Semaphore HttpMessage HttpMessage Message->HttpMessage WebSocketMessage WebSocketMessage Message->WebSocketMessage HttpRequest HttpRequest HttpMessage->HttpRequest HttpResponse HttpResponse HttpMessage->HttpResponse ECKey ECKey PKey->ECKey BlsKey BlsKey ECKey->BlsKey Ed25519Key Ed25519Key ECKey->Ed25519Key BufferedStream BufferedStream Stream->BufferedStream SeekableStream SeekableStream Stream->SeekableStream Socket Socket Stream->Socket SslSocket SslSocket Stream->SslSocket TTYInputStream TTYInputStream Stream->TTYInputStream TTYOutputStream TTYOutputStream Stream->TTYOutputStream File File SeekableStream->File MemoryStream MemoryStream SeekableStream->MemoryStream RangeStream RangeStream SeekableStream->RangeStream HttpServer HttpServer TcpServer->HttpServer SslServer SslServer TcpServer->SslServer HttpsServer HttpsServer HttpServer->HttpsServer XmlCharacterData XmlCharacterData XmlNode->XmlCharacterData XmlDocument XmlDocument XmlNode->XmlDocument XmlDocumentType XmlDocumentType XmlNode->XmlDocumentType XmlElement XmlElement XmlNode->XmlElement XmlProcessingInstruction XmlProcessingInstruction XmlNode->XmlProcessingInstruction XmlComment XmlComment XmlCharacterData->XmlComment XmlText XmlText XmlCharacterData->XmlText XmlCDATASection XmlCDATASection XmlText->XmlCDATASection

멤버 함수

toString

객체의 문자열 표현을 반환하며 일반적으로 "[Native Object]"를 반환하며 객체 자체의 특성에 따라 다시 구현될 수 있습니다.

1
String object.toString();

결과 반환:

  • String, 객체의 문자열 표현을 반환합니다.

toJSON

객체의 JSON 형식 표현을 반환하며 일반적으로 객체에 의해 정의된 읽을 수 있는 속성 컬렉션을 반환합니다.

1
Value object.toJSON(String key = "");

호출 매개변수:

  • key: 문자열, 사용되지 않음

결과 반환:

  • Value, 직렬화 가능한 JSON을 포함하는 값을 반환합니다.