import { Handler } from "./Parser" ; param func export default class MultiplexHandler implements Handler { _func : ( event : keyof Handler , ... args : unknown [ ] ) => void ; constructor ( func ) { this . _func = func ; } onattribute ( name , value ) { this . _func ( "onattribute" , name , value ) ; } oncdatastart ( ) { this . _func ( "oncdatastart" ) ; } oncdataend ( ) { this . _func ( "oncdataend" ) ; } ontext ( text ) { this . _func ( "ontext" , text ) ; } onprocessinginstruction ( name , value ) { this . _func ( "onprocessinginstruction" , name , value ) ; } oncomment ( comment ) { this . _func ( "oncomment" , comment ) ; } oncommentend ( ) { this . _func ( "oncommentend" ) ; } onclosetag ( name ) { this . _func ( "onclosetag" , name ) ; } onopentag ( name , attribs ) { this . _func ( "onopentag" , name , attribs ) ; } onopentagname ( name ) { this . _func ( "onopentagname" , name ) ; } onerror ( error ) { this . _func ( "onerror" , error ) ; } onend ( ) { this . _func ( "onend" ) ; } onparserinit ( parser ) { this . _func ( "onparserinit" , parser ) ; } onreset ( ) { this . _func ( "onreset" ) ; } }