import { OclExecutionContext } from '../OclExecutionContext' ; import { Expression } from './Expression' ; oclSpecification oclExample export class DefExpression extends Expression { private readonly key : string ; private readonly value : Expression ; constructor ( key , value ) { super ( ) ; this . key = key ; this . value = value ; } getKey ( ) { return this . key ; } getValue ( ) { return this . value ; } evaluate ( visitor , localVariables ? ) { visitor . getObjectToEvaluate ( ) [ this . getKey ( ) ] = this . getValue ( ) . evaluate ( visitor , localVariables ) ; } }