Skip to content

Segment

Segment is a segment of a resource name or a resource name pattern.

EBNF

Segment = Literal | Variable ; Variable = ”{” Literal ”}” ;

new Segment(value): Segment

string

Segment

readonly value: string

isVariable(): boolean

IsVariable reports whether the segment is a variable segment.

boolean


isWildcard(): boolean

IsWildcard reports whether the segment is a wildcard.

boolean


literal(): Literal

Literal returns the literal value of the segment. For variables, the literal value is the name of the variable.

Literal