X-Git-Url: http://git.phpeclipse.com diff --git a/net.sourceforge.phpeclipse/src/net/sourceforge/phpeclipse/builder/PHPIdentifierLocation.java b/net.sourceforge.phpeclipse/src/net/sourceforge/phpeclipse/builder/PHPIdentifierLocation.java index 0b3f252..43006a0 100644 --- a/net.sourceforge.phpeclipse/src/net/sourceforge/phpeclipse/builder/PHPIdentifierLocation.java +++ b/net.sourceforge.phpeclipse/src/net/sourceforge/phpeclipse/builder/PHPIdentifierLocation.java @@ -9,6 +9,9 @@ import net.sourceforge.phpeclipse.mover.obfuscator.PHPIdentifier; 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); @@ -18,6 +21,9 @@ public class PHPIdentifierLocation extends PHPIdentifier { super(identifier, type); fFilename = filename; fClassname = classname; + fOffset = -1; + fPHPDocLength = -1; + fPHPDocOffset = -1; } /* (non-Javadoc) * @see java.lang.Object#equals(java.lang.Object) @@ -44,6 +50,27 @@ public class PHPIdentifierLocation extends PHPIdentifier { } /** + * @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) { @@ -57,11 +84,32 @@ public class PHPIdentifierLocation extends PHPIdentifier { 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; } }