Skip to content

Scanner

Scanner scans a resource name.

new Scanner(name): Scanner

string

Scanner

end(): number

End returns the end index (exclusive) of the current segment.

number


full(): boolean

Full returns true if the scanner has detected a full resource name.

boolean


scan(): boolean

Scan to the next segment.

boolean


segment(): Segment

Segment returns the current segment.

Segment


serviceName(): string

ServiceName returns the service name, when the scanner has detected a full resource name.

string


start(): number

Start returns the start index (inclusive) of the current segment.

number