webkit  2cdf99a9e3038c7e01b3c37e8ad903ecbe5eecf1
https://github.com/WebKit/webkit
Public Member Functions | List of all members
Json::Path Class Reference

Experimental and untested: represents a "path" to access a node. More...

#include <value.h>

Public Member Functions

 Path (const std::string &path, const PathArgument &a1=PathArgument(), const PathArgument &a2=PathArgument(), const PathArgument &a3=PathArgument(), const PathArgument &a4=PathArgument(), const PathArgument &a5=PathArgument())
 
const Valueresolve (const Value &root) const
 
Value resolve (const Value &root, const Value &defaultValue) const
 
Valuemake (Value &root) const
 Creates the "path" to access the specified node and returns a reference on the node. More...
 
 Path (const std::string &path, const PathArgument &a1=PathArgument(), const PathArgument &a2=PathArgument(), const PathArgument &a3=PathArgument(), const PathArgument &a4=PathArgument(), const PathArgument &a5=PathArgument())
 
const Valueresolve (const Value &root) const
 
Value resolve (const Value &root, const Value &defaultValue) const
 
Valuemake (Value &root) const
 Creates the "path" to access the specified node and returns a reference on the node. More...
 
 Path (const std::string &path, const PathArgument &a1=PathArgument(), const PathArgument &a2=PathArgument(), const PathArgument &a3=PathArgument(), const PathArgument &a4=PathArgument(), const PathArgument &a5=PathArgument())
 
const Valueresolve (const Value &root) const
 
Value resolve (const Value &root, const Value &defaultValue) const
 
Valuemake (Value &root) const
 

Detailed Description

Experimental and untested: represents a "path" to access a node.

Syntax:

Constructor & Destructor Documentation

◆ Path() [1/3]

Json::Path::Path ( const std::string path,
const PathArgument a1 = PathArgument(),
const PathArgument a2 = PathArgument(),
const PathArgument a3 = PathArgument(),
const PathArgument a4 = PathArgument(),
const PathArgument a5 = PathArgument() 
)

◆ Path() [2/3]

Json::Path::Path ( const std::string path,
const PathArgument a1 = PathArgument(),
const PathArgument a2 = PathArgument(),
const PathArgument a3 = PathArgument(),
const PathArgument a4 = PathArgument(),
const PathArgument a5 = PathArgument() 
)

◆ Path() [3/3]

Json::Path::Path ( const std::string path,
const PathArgument a1 = PathArgument(),
const PathArgument a2 = PathArgument(),
const PathArgument a3 = PathArgument(),
const PathArgument a4 = PathArgument(),
const PathArgument a5 = PathArgument() 
)

Member Function Documentation

◆ make() [1/3]

Value& Json::Path::make ( Value root) const

Creates the "path" to access the specified node and returns a reference on the node.

◆ make() [2/3]

Value & Json::Path::make ( Value root) const

Creates the "path" to access the specified node and returns a reference on the node.

◆ make() [3/3]

Value& Json::Path::make ( Value root) const

Creates the "path" to access the specified node and returns a reference on the node.

◆ resolve() [1/6]

const Value& Json::Path::resolve ( const Value root) const

◆ resolve() [2/6]

Value Json::Path::resolve ( const Value root,
const Value defaultValue 
) const

◆ resolve() [3/6]

const Value & Json::Path::resolve ( const Value root) const

◆ resolve() [4/6]

Value Json::Path::resolve ( const Value root,
const Value defaultValue 
) const

◆ resolve() [5/6]

const Value& Json::Path::resolve ( const Value root) const

◆ resolve() [6/6]

Value Json::Path::resolve ( const Value root,
const Value defaultValue 
) const

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