public class StructurallyEquivalentHeap extends AbstractSyntacticHeap implements SyntacticHeap
syntacticItems| Constructor and Description |
|---|
StructurallyEquivalentHeap(SyntacticHeap parent) |
| Modifier and Type | Method and Description |
|---|---|
<T extends SyntacticItem> |
allocate(T item)
Allocate a given syntactic item into this heap.
|
getIndexOf, getSyntacticItem, getSyntacticItems, print, sizeclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetIndexOf, getSyntacticItem, sizepublic StructurallyEquivalentHeap(SyntacticHeap parent)
public <T extends SyntacticItem> T allocate(T item)
SyntacticHeapAllocate a given syntactic item into this heap. The item must not already be allocated to another heap. This will recursively allocate children not already allocated to this heap. Observe that the item returned is the actual object allocated into this heap. One should not assume that the item given is that which is actually allocated.
This method will not permit mixed allocation items. That is, when it encounters an item already allocated to another heap it will simple throw an exception.
allocate in interface SyntacticHeapallocate in class AbstractSyntacticHeapCopyright © 2017. All rights reserved.