Skip to main content
Module

x/steam_trader/types/protobuf.d.ts>ReflectionObject

https://deno.land/x/steam_trader
Latest
class ReflectionObject
Abstract
import { ReflectionObject } from "https://deno.land/x/steam_trader@v0.4.0/types/protobuf.d.ts";

Base class of all reflection objects.

Properties

comment: (string | null)

Comment text, if any.

filename: (string | null)

Defining file name.

readonly
fullName: string

Full name including leading dot.

name: string

Unique name within its namespace.

optional
options: { [k: string]: any; }

Options.

parent: (Namespace | null)

Parent namespace.

optional
parsedOptions: { [k: string]: any[]; }

Parsed Options.

resolved: boolean

Whether already resolved or not.

readonly
root: Root

Reference to the root namespace.

Methods

getOption(name: string): any

Gets an option value.

onAdd(parent: ReflectionObject): void

Called when this object is added to a parent.

onRemove(parent: ReflectionObject): void

Called when this object is removed from a parent.

Resolves this objects type references.

setOption(
name: string,
value: any,
ifNotSet?: boolean,
): ReflectionObject

Sets an option.

setOptions(options: { [k: string]: any; }, ifNotSet?: boolean): ReflectionObject

Sets multiple options.

setParsedOption(
name: string,
value: any,
propName: string,
): ReflectionObject

Sets a parsed option.

toJSON(): { [k: string]: any; }

Converts this reflection object to its descriptor representation.

toString(): string

Converts this instance to its string representation.