JsonPointerIterator

The JsonPointerIterator is used by the read/write algorithms of the @see \io\vertx\jphp\core\json\pointer\JsonPointer to read/write the querying data structure <br/>

Every method takes the currentValue as parameter, representing the actual value held by the query algorithm.

Implementations of this interface should be stateless, so they can be reused

You can implement this interface to query the structure you want using json pointers

package

Default

Methods

__construct

__construct() 

Append array element

appendArrayElement( $arg0,  $arg1) : boolean

Arguments

$arg0

mixed

$arg1

mixed

Response

boolean

true if the operation is successful

Move the iterator the the array element at specified index

getArrayElement( $arg0,  $arg1) : mixed

Arguments

$arg0

mixed

$arg1

integer

Response

mixed

the request array element, or null if the method was not able to find it

Returns the object parameter with specified key.

getObjectParameter( $arg0,  $arg1,  $arg2) : mixed

Arguments

$arg0

mixed

$arg1

string

$arg2

boolean

Response

mixed

the requested object parameter, or null if the method was not able to find it

isArray

isArray( $arg0) : boolean

Arguments

$arg0

mixed

Response

boolean

{@code true} if the current value is a queryable array

isNull

isNull( $arg0) : boolean

Arguments

$arg0

mixed

Response

boolean

{@code true} if the current value is null/empty

isObject

isObject( $arg0) : boolean

Arguments

$arg0

mixed

Response

boolean

{@code true} if the current value is a queryable object

objectContainsKey

objectContainsKey( $arg0,  $arg1) : boolean

Arguments

$arg0

mixed

$arg1

string

Response

boolean

{@code true} if current value is a queryable object that contains the specified key

Write array element at specified index

writeArrayElement( $arg0,  $arg1,  $arg2) : boolean

Arguments

$arg0

mixed

$arg1

integer

$arg2

mixed

Response

boolean

true if the operation is successful

Write object parameter at specified key

writeObjectParameter( $arg0,  $arg1,  $arg2) : boolean

Arguments

$arg0

mixed

$arg1

string

$arg2

mixed

Response

boolean

true if the operation is successful

Constants

Instance of a JsonPointerIterator to query Vert.x Json structures

JSON_ITERATOR
var

php文件只是为了写代码方便,常量的实际值请参考原java文件