|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.zmpp.vm.DefaultZObject
public class DefaultZObject
This is the default implementation of a ZObject.
Constructor Summary | |
---|---|
DefaultZObject(MemoryAccess memaccess,
int address)
Constructor. |
Method Summary | |
---|---|
void |
clearAttribute(int attributeNum)
Clears the specified attribute. |
int |
getChild()
Returns the object number of this object's child object. |
int |
getNextProperty(int property)
Returns the next property in the list. |
int |
getNumProperties()
Returns the number of properties. |
int |
getParent()
Returns the number of this object's parent object. |
int |
getPropertiesDescriptionAddress()
Returns the properties description address. |
int |
getPropertyAddress(int property)
Returns the address of the specified property. |
byte |
getPropertyByte(int property,
int bytenum)
Returns the the specified property byte. |
int |
getPropertySize(int property)
The number of bytes in the specified property. |
int |
getPropertyTableAddress()
Returns this object's property table address. |
int |
getSibling()
Returns the object number of this object's sibling object. |
boolean |
isAttributeSet(int attributeNum)
Tests if the specified attribute is set. |
boolean |
isPropertyAvailable(int property)
Returns true if the specified property is available. |
void |
setAttribute(int attributeNum)
Sets the specified attribute. |
void |
setChild(int child)
Assigns a new child to this object. |
void |
setParent(int parent)
Assigns a new parent object. |
void |
setPropertyByte(int property,
int bytenum,
byte value)
Sets the specified property byte to the given value. |
void |
setSibling(int sibling)
Assigns a new sibling to this object. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public DefaultZObject(MemoryAccess memaccess, int address)
address
- the start address of the objectMethod Detail |
---|
public boolean isAttributeSet(int attributeNum)
isAttributeSet
in interface ZObject
attributeNum
- the attribute number, starting with 0
public void setAttribute(int attributeNum)
setAttribute
in interface ZObject
attributeNum
- the attribute number, starting with 0public void clearAttribute(int attributeNum)
clearAttribute
in interface ZObject
attributeNum
- the attribute number, starting with 0public int getParent()
getParent
in interface ZObject
public void setParent(int parent)
setParent
in interface ZObject
parent
- the new parent objectpublic int getSibling()
getSibling
in interface ZObject
public void setSibling(int sibling)
setSibling
in interface ZObject
sibling
- the new sibling's object numberpublic int getChild()
getChild
in interface ZObject
public void setChild(int child)
setChild
in interface ZObject
child
- the new childpublic int getPropertyTableAddress()
getPropertyTableAddress
in interface ZObject
public int getPropertiesDescriptionAddress()
getPropertiesDescriptionAddress
in interface ZObject
public int getNumProperties()
getNumProperties
in interface ZObject
public int getPropertySize(int property)
getPropertySize
in interface ZObject
property
- the property number
public byte getPropertyByte(int property, int bytenum)
getPropertyByte
in interface ZObject
property
- the property numberbytenum
- the byte number
public int getPropertyAddress(int property)
getPropertyAddress
in interface ZObject
property
- the property
public boolean isPropertyAvailable(int property)
isPropertyAvailable
in interface ZObject
property
- the property number
public int getNextProperty(int property)
getNextProperty
in interface ZObject
property
- the property number
public void setPropertyByte(int property, int bytenum, byte value)
setPropertyByte
in interface ZObject
property
- the propertybytenum
- the byte numbervalue
- the value
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |