Options
All
  • Public
  • Public/Protected
  • All
Menu

Class UriPathSegment

Hierarchy

Index

Constructors

constructor

Properties

Readonly rest

rest: UriPath

Readonly segment

segment: string

Readonly stringValue

stringValue: undefined | string

Accessors

length

  • get length(): number
  • Returns number

name

  • get name(): string
  • Returns string

Static segmentCache

  • Returns HashGenCacheSet<string>

Methods

appended

  • Parameters

    Returns UriPath

appendedSegment

  • appendedSegment(segment: string): UriPath
  • Parameters

    • segment: string

    Returns UriPath

appendedSlash

base

  • Returns UriPath

compareTo

  • compareTo(that: unknown): number
  • Parameters

    • that: unknown

    Returns number

dealias

  • Returns UriPath

debug

  • debug(output: Output<unknown>): void
  • Parameters

    Returns void

display

  • display(output: Output<unknown>): void
  • Parameters

    Returns void

equals

  • equals(that: unknown): boolean
  • Parameters

    • that: unknown

    Returns boolean

foot

  • Returns UriPath

get

  • get(index: number): undefined | string
  • Parameters

    • index: number

    Returns undefined | string

hashCode

  • hashCode(): number
  • Returns number

head

  • head(): string
  • Returns string

isAbsolute

  • isAbsolute(): boolean
  • Returns boolean

isDefined

  • isDefined(): boolean
  • Returns boolean

isEmpty

  • isEmpty(): boolean
  • Returns boolean

isRelative

  • isRelative(): boolean
  • Returns boolean

isSubpathOf

  • Parameters

    Returns boolean

merge

  • Parameters

    Returns UriPath

parent

  • Returns UriPath

prepended

  • Parameters

    Returns UriPath

prependedSegment

  • prependedSegment(segment: string): UriPath
  • Parameters

    • segment: string

    Returns UriPath

prependedSlash

removeDotSegments

resolve

  • Parameters

    Returns UriPath

setTail

  • Parameters

    Returns void

tail

  • Returns UriPath

toAny

  • toAny(): string[]
  • Returns string[]

toString

  • toString(): string
  • Returns string

unmerge

withName

  • Parameters

    • name: string

    Returns UriPath

Static builder

Static cacheSegment

  • cacheSegment(segment: string): string
  • Parameters

    • segment: string

    Returns string

Static empty

  • Returns UriPath

Static fromAny

  • Parameters

    Returns UriPath

Static of

  • Parameters

    Returns UriPath

Static parse

  • Parameters

    • pathPart: string

    Returns UriPath

Static pathForm

Static segment

  • Parameters

    • segment: string
    • Optional tail: UriPath

    Returns UriPath

Static slash

  • Returns UriPath

Generated using TypeDoc