public class Domain extends Events
Objs.Constructor<T extends Objs>, Objs.Property<T>
Modifier | Constructor and Description |
---|---|
protected |
Domain(Objs.Constructor<?> c,
Object js) |
Modifier and Type | Method and Description |
---|---|
static Domain |
$as(Object obj) |
void |
add(Events emitter) |
Object |
addListener(String event,
Function listener) |
Object |
bind(Function.A2<? super Error,? super Object,? extends Object> cb) |
void |
dispose() |
Object |
intercept(Function.A1<? super Object,? extends Object> cb) |
Object |
on(String event,
Function listener) |
Object |
once(String event,
Function listener) |
void |
remove(Events emitter) |
Object |
removeAllListeners() |
Object |
removeAllListeners(String event) |
Object |
removeListener(String event,
Function listener) |
void |
run(Function fn) |
emit, getMaxListeners, listenerCount, listeners, setMaxListeners
$as, $cast, $delete, $get, $js, $set, create, create, defineProperties, defineProperty, freeze, getOwnPropertyDescriptor, getOwnPropertyNames, getPrototypeOf, hasOwnProperty, isExtensible, isFrozen, isPrototypeOf, isSealed, keys, newObject, newObject, preventExtensions, propertyIsEnumerable, seal, toLocaleString, toString, valueOf
protected Domain(Objs.Constructor<?> c, Object js)
public void add(Events emitter)
public Object addListener(String event, Function listener)
addListener
in class EventEmitter
public Object bind(Function.A2<? super Error,? super Object,? extends Object> cb)
public void dispose()
public Object intercept(Function.A1<? super Object,? extends Object> cb)
public Object on(String event, Function listener)
on
in class EventEmitter
public Object once(String event, Function listener)
once
in class EventEmitter
public void remove(Events emitter)
public Object removeAllListeners(String event)
removeAllListeners
in class EventEmitter
public Object removeAllListeners()
removeAllListeners
in class EventEmitter
public Object removeListener(String event, Function listener)
removeListener
in class EventEmitter
public void run(Function fn)
Copyright © 2018. All rights reserved.