1 package net.sourceforge.phpdt.internal.compiler.parser;
3 import org.eclipse.jface.text.Position;
9 public abstract class PHPSegment implements Outlineable {
10 protected String name;
11 private Position position;
12 private Object parent;
14 public PHPSegment(Object parent, String name, int index) {
17 this.position = new Position(index, name.length());
21 * Return the name of the segment.
22 * @return the name of the segment
24 public String getName() {
28 public String toString() {
32 public Position getPosition() {
36 public Object getParent() {