|
Hilbert II - Version 0.03.02 | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
An element is either a list or an atom. Each list has an operator and contains elements which are also elements. A list has a size and their elements can be accessed by their position. An atom carries textual data, has no operator and no size in the previous sense.
| Method Summary | |
Element |
copy()
Returns an identical object (maybe "this"). |
boolean |
equals(Object object)
Is this object equal to the given one? |
Atom |
getAtom()
Return this element as an Atom. |
ElementList |
getList()
Return this element as a Atom. |
int |
hashCode()
Calculates the hash code. |
boolean |
isAtom()
Is this an atom? |
boolean |
isList()
Is this an ElementList? |
Element |
replace(Element search,
Element replacement)
Creates and returns a copy of this object, but replaces anything that equals(java.lang.Object) argument
with a copy() of replacement. |
String |
toString()
Get show this in String form. |
| Method Detail |
public boolean isAtom()
true if this is an instance of Atom.public Atom getAtom()
Atom.
Atom.
ClassCastException - This is no instance of Atom.public boolean isList()
ElementList?
true if this is an instance of ElementList.public ElementList getList()
Atom.
ClassCastException - This is no instance of Atom.public boolean equals(Object object)
object - to compare with
object equal to this one?public int hashCode()
public Element copy()
public Element replace(Element search,
Element replacement)
equals(java.lang.Object) argument
with a copy() of replacement.
search - Check for occurrence of this.replacement - Replace with this.
public String toString()
String form.
|
Hilbert II - Version 0.03.02 | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
| ©left GNU General Public Licence All Rights Reserved. |