public class PHPIdentifierLocation extends PHPIdentifier {
private String fClassname;
private String fFilename;
+ private int fOffset;
+ private int fPHPDocLength;
+ private int fPHPDocOffset;
public PHPIdentifierLocation(String identifier, int type, String filename) {
this(identifier, type, filename, null);
super(identifier, type);
fFilename = filename;
fClassname = classname;
+ fOffset = -1;
+ fPHPDocLength = -1;
+ fPHPDocOffset = -1;
}
/* (non-Javadoc)
* @see java.lang.Object#equals(java.lang.Object)
}
/**
+ * @return
+ */
+ public int getOffset() {
+ return fOffset;
+ }
+
+ /**
+ * @return
+ */
+ public int getPHPDocLength() {
+ return fPHPDocLength;
+ }
+
+ /**
+ * @return
+ */
+ public int getPHPDocOffset() {
+ return fPHPDocOffset;
+ }
+
+ /**
* @param string
*/
public void setClassname(String string) {
fFilename = string;
}
+ /**
+ * @param i
+ */
+ public void setOffset(int i) {
+ fOffset = i;
+ }
+
+ /**
+ * @param i
+ */
+ public void setPHPDocLength(int i) {
+ fPHPDocLength = i;
+ }
+
+ /**
+ * @param i
+ */
+ public void setPHPDocOffset(int i) {
+ fPHPDocOffset = i;
+ }
+
/* (non-Javadoc)
* @see java.lang.Object#toString()
*/
public String toString() {
- return super.toString()+fFilename;
+ return super.toString()+"\n"+fFilename;
}
}