* An abstract PHPSegment that can have children.
* @author khartlage, Matthieu Casanova
*/
-public abstract class PHPSegmentWithChildren extends PHPSegment {
+public abstract class PHPSegmentWithChildren extends PHPSegment implements OutlineableWithChildren {
private ArrayList children;
/**
* @param o function declaration to be appended to this list.
* @return <tt>true</tt> (as per the general contract of Collection.add).
*/
- public boolean add(PHPSegment o) {
+ public boolean add(Outlineable o) {
return children.add(o);
}
* @throws java.lang.IndexOutOfBoundsException if index is out of range <tt>(index
* < 0 || index >= size())</tt>.
*/
- public PHPSegment get(int index) {
- return (PHPSegment) children.get(index);
+ public Outlineable get(int index) {
+ return (Outlineable) children.get(index);
}
/**