import LowerCaseState from "./LowerCaseState" ; import State from "./State" ; export default class StateContext { state : State ; constructor ( ) { this . state = new LowerCaseState ( ) ; } setState ( state ) { this . state = state ; } writeName ( name ) { this . state . writeName ( this , name ) ; } }