|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.groovemanager.spi.asio.NativeClass
abstract class NativeClass
An abstract class that can be used for Wrapper classes of native classes or structs
Field Summary | |
---|---|
private long |
pointer
The native address of the native instance |
private boolean |
selfCreated
Indicates whether a new native instance was created with this class or not. |
Constructor Summary | |
---|---|
NativeClass()
Create a new instance of this class and also a corresponding new native instance |
|
NativeClass(long pointer)
Create an instance of this class to an already existing native instance |
Method Summary | |
---|---|
protected abstract void |
cleanUp()
Delete the corresponding native instance to this class |
protected abstract long |
createClass()
Create a new native instance and return its address |
void |
finalize()
If the native instance was created by this class, then delete it now! |
(package private) long |
getPointer()
Get the address of the native instance corresponding to this class |
Methods inherited from class java.lang.Object |
---|
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
private long pointer
private boolean selfCreated
Constructor Detail |
---|
NativeClass()
NativeClass(long pointer)
pointer
- The address of the native instanceMethod Detail |
---|
protected abstract long createClass()
protected abstract void cleanUp()
long getPointer()
public void finalize()
finalize
in class Object
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |