Class: ModelVisitor<T, S>
Implements the visitor pattern for models.
Extended by
Type Parameters
Type Parameter | Default type | Description |
---|---|---|
T | - | The return type of visit methods. |
S | unknown | The 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
Parameter | Type |
---|---|
booleanProperty | BooleanPropertyModel |
state ? | S |
Returns
T
Defined in
packages/verse-core/src/model/visitor.ts:79
visitConcurrency()
visitConcurrency(
concurrency
:ConcurrencyModel
,state
?:S
):T
Parameters
Parameter | Type |
---|---|
concurrency | ConcurrencyModel |
state ? | S |
Returns
T
Defined in
packages/verse-core/src/model/visitor.ts:59
visitConversion()
visitConversion(
conversion
:ConversionModel
,state
?:S
):T
Parameters
Parameter | Type |
---|---|
conversion | ConversionModel |
state ? | S |
Returns
T
Defined in
packages/verse-core/src/model/visitor.ts:109
visitDateProperty()
visitDateProperty(
dateProperty
:DatePropertyModel
,state
?:S
):T
Parameters
Parameter | Type |
---|---|
dateProperty | DatePropertyModel |
state ? | S |
Returns
T
Defined in
packages/verse-core/src/model/visitor.ts:84
visitEntity()
visitEntity(
entity
:EntityModel
<any
,any
>,state
?:S
):T
Parameters
Parameter | Type |
---|---|
entity | EntityModel <any , any > |
state ? | S |
Returns
T
Defined in
packages/verse-core/src/model/visitor.ts:34
visitForeignKey()
visitForeignKey(
foreignKey
:ForeignKeyModel
,state
?:S
):T
Parameters
Parameter | Type |
---|---|
foreignKey | ForeignKeyModel |
state ? | S |
Returns
T
Defined in
packages/verse-core/src/model/visitor.ts:54
visitGenerator()
visitGenerator(
generator
:GeneratorModel
,state
?:S
):T
Parameters
Parameter | Type |
---|---|
generator | GeneratorModel |
state ? | S |
Returns
T
Defined in
packages/verse-core/src/model/visitor.ts:104
visitIntProperty()
visitIntProperty(
intProperty
:IntPropertyModel
,state
?:S
):T
Parameters
Parameter | Type |
---|---|
intProperty | IntPropertyModel |
state ? | S |
Returns
T
Defined in
packages/verse-core/src/model/visitor.ts:74
visitKey()
visitKey(
key
:KeyModel
,state
?:S
):T
Parameters
Parameter | Type |
---|---|
key | KeyModel |
state ? | S |
Returns
T
Defined in
packages/verse-core/src/model/visitor.ts:49
visitModel()
visitModel(
model
:Model
,state
?:S
):T
Parameters
Parameter | Type |
---|---|
model | Model |
state ? | S |
Returns
T
Defined in
packages/verse-core/src/model/visitor.ts:29
visitNavigationProperty()
visitNavigationProperty(
navigation
:NavigationPropertyModel
,state
?:S
):T
Parameters
Parameter | Type |
---|---|
navigation | NavigationPropertyModel |
state ? | S |
Returns
T
Defined in
packages/verse-core/src/model/visitor.ts:94
visitNumberProperty()
visitNumberProperty(
numberProperty
:NumberPropertyModel
,state
?:S
):T
Parameters
Parameter | Type |
---|---|
numberProperty | NumberPropertyModel |
state ? | S |
Returns
T
Defined in
packages/verse-core/src/model/visitor.ts:89
visitScalarProperty()
visitScalarProperty(
scalarProperty
:ScalarPropertyModel
,state
?:S
):T
Parameters
Parameter | Type |
---|---|
scalarProperty | ScalarPropertyModel |
state ? | S |
Returns
T
Defined in
packages/verse-core/src/model/visitor.ts:64
visitSequence()
visitSequence(
sequence
:SequenceModel
,state
?:S
):T
Parameters
Parameter | Type |
---|---|
sequence | SequenceModel |
state ? | S |
Returns
T
Defined in
packages/verse-core/src/model/visitor.ts:44
visitStringProperty()
visitStringProperty(
stringProperty
:StringPropertyModel
,state
?:S
):T
Parameters
Parameter | Type |
---|---|
stringProperty | StringPropertyModel |
state ? | S |
Returns
T
Defined in
packages/verse-core/src/model/visitor.ts:69
visitValueObject()
visitValueObject(
valueObject
:ValueObjectModel
<any
>,state
?:S
):T
Parameters
Parameter | Type |
---|---|
valueObject | ValueObjectModel <any > |
state ? | S |
Returns
T
Defined in
packages/verse-core/src/model/visitor.ts:39
visitValueObjectProperty()
visitValueObjectProperty(
valueObjectProperty
:ValueObjectPropertyModel
,state
?:S
):T
Parameters
Parameter | Type |
---|---|
valueObjectProperty | ValueObjectPropertyModel |
state ? | S |
Returns
T