class Path::Segment

Declaration

class Path::Segment { /* full declaration omitted */ };

Description

One element in a JSON path: an object field (.foo) or array index [27]. Exception: the root Path encodes a pointer to the Path::Root.

Declared at: llvm/include/llvm/Support/JSON.h:650

Member Variables

private uintptr_t Pointer
private unsigned int Offset

Method Overview

  • public Segment()
  • public Segment(llvm::json::Path::Root * R)
  • public Segment(llvm::StringRef Field)
  • public Segment(unsigned int Index)
  • public llvm::StringRef field() const
  • public unsigned int index() const
  • public bool isField() const
  • public llvm::json::Path::Root * root() const

Methods

Segment()

Declared at: llvm/include/llvm/Support/JSON.h:655

Segment(llvm::json::Path::Root* R)

Declared at: llvm/include/llvm/Support/JSON.h:656

Parameters

llvm::json::Path::Root* R

Segment(llvm::StringRef Field)

Declared at: llvm/include/llvm/Support/JSON.h:657

Parameters

llvm::StringRef Field

Segment(unsigned int Index)

Declared at: llvm/include/llvm/Support/JSON.h:660

Parameters

unsigned int Index

llvm::StringRef field() const

Declared at: llvm/include/llvm/Support/JSON.h:663

unsigned int index() const

Declared at: llvm/include/llvm/Support/JSON.h:666

bool isField() const

Declared at: llvm/include/llvm/Support/JSON.h:662

llvm::json::Path::Root* root() const

Declared at: llvm/include/llvm/Support/JSON.h:667