package net.sourceforge.phpeclipse.phpeditor.phpparser; import org.eclipse.jface.resource.ImageDescriptor; import org.eclipse.jface.text.Position; /** * * @author khartlage */ public abstract class PHPSegment { protected String name; private Position position; private Object parent; public PHPSegment(Object parent, String name, int index) { this.parent = parent; this.name = name; this.position = new Position(index, name.length()); } public String toString() { return name; } public Position getPosition() { return position; } public Object getParent() { return parent; } public abstract ImageDescriptor getImage(); };