public class EventEmitter extends EventEmitter
Objs.Constructor<T extends Objs>, Objs.Property<T>
Modifier and Type | Field and Description |
---|---|
Objs.Property<Number> |
defaultMaxListeners |
Objs.Property<EventEmitter> |
EventEmitter |
Modifier | Constructor and Description |
---|---|
protected |
EventEmitter(Objs.Constructor<?> c,
Object js) |
Modifier and Type | Method and Description |
---|---|
static EventEmitter |
$as(Object obj) |
Object |
addListener(String event,
Function listener) |
Number |
defaultMaxListeners() |
Boolean |
emit(String event,
Object... args) |
EventEmitter |
EventEmitter() |
double |
getMaxListeners() |
double |
listenerCount(EventEmitter emitter,
String event) |
double |
listenerCount(String type) |
Array<Function> |
listeners(String event) |
Object |
on(String event,
Function listener) |
Object |
once(String event,
Function listener) |
Object |
removeAllListeners() |
Object |
removeAllListeners(String event) |
Object |
removeListener(String event,
Function listener) |
Object |
setMaxListeners(double n) |
$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
public Objs.Property<EventEmitter> EventEmitter
public Objs.Property<Number> defaultMaxListeners
protected EventEmitter(Objs.Constructor<?> c, Object js)
public static EventEmitter $as(Object obj)
public EventEmitter EventEmitter()
public double listenerCount(EventEmitter emitter, String event)
public Number defaultMaxListeners()
public Object addListener(String event, Function listener)
addListener
in class EventEmitter
public Object on(String event, Function listener)
on
in class EventEmitter
public Object once(String event, Function listener)
once
in class EventEmitter
public Object removeListener(String event, Function listener)
removeListener
in class EventEmitter
public Object removeAllListeners(String event)
removeAllListeners
in class EventEmitter
public Object removeAllListeners()
removeAllListeners
in class EventEmitter
public Object setMaxListeners(double n)
setMaxListeners
in class EventEmitter
public double getMaxListeners()
getMaxListeners
in class EventEmitter
public Array<Function> listeners(String event)
listeners
in class EventEmitter
public Boolean emit(String event, Object... args)
emit
in class EventEmitter
public double listenerCount(String type)
listenerCount
in class EventEmitter
Copyright © 2018. All rights reserved.