public abstract class BaseNodeModule extends java.lang.Object implements INodeModule
| Modifier and Type | Field and Description |
|---|---|
protected V8ValueObject |
moduleObject
The module object.
|
protected java.lang.String |
name
The module name.
|
| Constructor and Description |
|---|
BaseNodeModule(V8ValueObject moduleObject,
java.lang.String name)
Instantiates a new Base node module.
|
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
V8ValueObject |
getModuleObject()
Gets the module object.
|
java.lang.String |
getName()
Gets the module name.
|
boolean |
isClosed()
Is closed.
|
protected V8ValueObject moduleObject
protected java.lang.String name
public BaseNodeModule(V8ValueObject moduleObject, java.lang.String name)
moduleObject - the module objectname - the module namepublic void close()
throws JavetException
close in interface IJavetClosableclose in interface java.lang.AutoCloseableJavetExceptionpublic V8ValueObject getModuleObject()
INodeModulegetModuleObject in interface INodeModulepublic java.lang.String getName()
INodeModulegetName in interface INodeModulepublic boolean isClosed()
IJavetClosableisClosed in interface IJavetClosable