public class EventEmitter extends Objs
Objs.Constructor<T extends Objs>, Objs.Property<T>
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) |
Boolean |
emit(String event,
Object... args) |
double |
getMaxListeners() |
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
protected EventEmitter(Objs.Constructor<?> c, Object js)
public static EventEmitter $as(Object obj)
public double getMaxListeners()
public double listenerCount(String type)
public Object removeAllListeners()
public Object setMaxListeners(double n)
Copyright © 2018. All rights reserved.