Skip to main content

Class: ModelVisitor<T, S>

Implements the visitor pattern for models.

Extended by

Type Parameters

Type ParameterDefault typeDescription
T-The return type of visit methods.
SunknownThe type of additional state that can be passed to visit methods.

Constructors

new ModelVisitor()

new ModelVisitor<T, S>(): ModelVisitor<T, S>

Returns

ModelVisitor<T, S>

Methods

visitBooleanProperty()

visitBooleanProperty(booleanProperty: BooleanPropertyModel, state?: S): T

Parameters

ParameterType
booleanPropertyBooleanPropertyModel
state?S

Returns

T

Defined in

packages/verse-core/src/model/visitor.ts:79


visitConcurrency()

visitConcurrency(concurrency: ConcurrencyModel, state?: S): T

Parameters

ParameterType
concurrencyConcurrencyModel
state?S

Returns

T

Defined in

packages/verse-core/src/model/visitor.ts:59


visitConversion()

visitConversion(conversion: ConversionModel, state?: S): T

Parameters

ParameterType
conversionConversionModel
state?S

Returns

T

Defined in

packages/verse-core/src/model/visitor.ts:109


visitDateProperty()

visitDateProperty(dateProperty: DatePropertyModel, state?: S): T

Parameters

ParameterType
datePropertyDatePropertyModel
state?S

Returns

T

Defined in

packages/verse-core/src/model/visitor.ts:84


visitEntity()

visitEntity(entity: EntityModel<any, any>, state?: S): T

Parameters

ParameterType
entityEntityModel<any, any>
state?S

Returns

T

Defined in

packages/verse-core/src/model/visitor.ts:34


visitForeignKey()

visitForeignKey(foreignKey: ForeignKeyModel, state?: S): T

Parameters

ParameterType
foreignKeyForeignKeyModel
state?S

Returns

T

Defined in

packages/verse-core/src/model/visitor.ts:54


visitGenerator()

visitGenerator(generator: GeneratorModel, state?: S): T

Parameters

ParameterType
generatorGeneratorModel
state?S

Returns

T

Defined in

packages/verse-core/src/model/visitor.ts:104


visitIntProperty()

visitIntProperty(intProperty: IntPropertyModel, state?: S): T

Parameters

ParameterType
intPropertyIntPropertyModel
state?S

Returns

T

Defined in

packages/verse-core/src/model/visitor.ts:74


visitKey()

visitKey(key: KeyModel, state?: S): T

Parameters

ParameterType
keyKeyModel
state?S

Returns

T

Defined in

packages/verse-core/src/model/visitor.ts:49


visitModel()

visitModel(model: Model, state?: S): T

Parameters

ParameterType
modelModel
state?S

Returns

T

Defined in

packages/verse-core/src/model/visitor.ts:29


visitNavigationProperty()

visitNavigationProperty(navigation: NavigationPropertyModel, state?: S): T

Parameters

ParameterType
navigationNavigationPropertyModel
state?S

Returns

T

Defined in

packages/verse-core/src/model/visitor.ts:94


visitNumberProperty()

visitNumberProperty(numberProperty: NumberPropertyModel, state?: S): T

Parameters

ParameterType
numberPropertyNumberPropertyModel
state?S

Returns

T

Defined in

packages/verse-core/src/model/visitor.ts:89


visitScalarProperty()

visitScalarProperty(scalarProperty: ScalarPropertyModel, state?: S): T

Parameters

ParameterType
scalarPropertyScalarPropertyModel
state?S

Returns

T

Defined in

packages/verse-core/src/model/visitor.ts:64


visitSequence()

visitSequence(sequence: SequenceModel, state?: S): T

Parameters

ParameterType
sequenceSequenceModel
state?S

Returns

T

Defined in

packages/verse-core/src/model/visitor.ts:44


visitStringProperty()

visitStringProperty(stringProperty: StringPropertyModel, state?: S): T

Parameters

ParameterType
stringPropertyStringPropertyModel
state?S

Returns

T

Defined in

packages/verse-core/src/model/visitor.ts:69


visitValueObject()

visitValueObject(valueObject: ValueObjectModel<any>, state?: S): T

Parameters

ParameterType
valueObjectValueObjectModel<any>
state?S

Returns

T

Defined in

packages/verse-core/src/model/visitor.ts:39


visitValueObjectProperty()

visitValueObjectProperty(valueObjectProperty: ValueObjectPropertyModel, state?: S): T

Parameters

ParameterType
valueObjectPropertyValueObjectPropertyModel
state?S

Returns

T

Defined in

packages/verse-core/src/model/visitor.ts:99