|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object
Object is the the base class for all objects. Under Ewe all methods except the wait() and notify() methods are supported.
The number of methods in this class is small since each method added to this class is added to all other classes in the system.
As with all classes in the ewe.lang package, you can't reference the Object class using the full specifier of ewe.lang.Object. The ewe.lang package is implicitly imported. Instead, you should simply access the Object class like this:
Object obj = (Object)value;
| Constructor Summary | |
Object()
|
|
| Method Summary | |
protected Object |
clone()
Create a field for field copy of this Object if this Object implements the Cloneable interface. |
boolean |
equals(Object other)
Returns if this object is considered equal to the other object. |
protected void |
finalize()
This method (when overriden), will be called when the VM determines that the Object can be garbage collected. |
Class |
getClass()
Return a Class object that represents the class of this object. |
int |
hashCode()
Returns a hashCode for the object. |
String |
toString()
Return a String representation of this object. |
| Constructor Detail |
public Object()
| Method Detail |
public String toString()
public Class getClass()
public boolean equals(Object other)
other - Another object to compare to.
public int hashCode()
protected void finalize()
throws Throwable
The finalize() method of a Class is only called if it overrides finalize() - the finalize() method java.lang.Object is never called by the Ewe VM.
Note that under a native Ewe VM, the call to finalize() will be synchronized with the Ewe library, but under a Java VM, the finalize() method may be called by a separate Thread that is not synchronized with the Ewe library. To ensure that the execution of the finalize() method is sychronized with the Ewe library your finalize() method should look like this:
protected void finalize()
{
synchronized(ewe.sys.Vm.getSyncObject()){
//
// Put your finalize() code here.
//
}
}
Under Ewe the synchronized keyword is silently ignored.
Throwable
protected Object clone()
throws CloneNotSupportedException
CloneNotSupportedException - if this Object does not implement the Cloneable interface.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||