X-Git-Url: http://secure.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 f3fb463..2dfec02 100644 --- a/net.sourceforge.phpeclipse/src/net/sourceforge/phpeclipse/builder/PHPIdentifierLocation.java +++ b/net.sourceforge.phpeclipse/src/net/sourceforge/phpeclipse/builder/PHPIdentifierLocation.java @@ -1,6 +1,6 @@ package net.sourceforge.phpeclipse.builder; -import net.sourceforge.phpeclipse.mover.obfuscator.PHPIdentifier; +import net.sourceforge.phpeclipse.obfuscator.PHPIdentifier; /** * @author khartlage @@ -9,6 +9,10 @@ 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; + private String fUsage; public PHPIdentifierLocation(String identifier, int type, String filename) { this(identifier, type, filename, null); @@ -18,6 +22,10 @@ public class PHPIdentifierLocation extends PHPIdentifier { super(identifier, type); fFilename = filename; fClassname = classname; + fOffset = -1; + fPHPDocLength = -1; + fPHPDocOffset = -1; + fUsage = null; } /* (non-Javadoc) * @see java.lang.Object#equals(java.lang.Object) @@ -44,6 +52,34 @@ public class PHPIdentifierLocation extends PHPIdentifier { } /** + * @return + */ + public int getOffset() { + return fOffset; + } + + /** + * @return + */ + public int getPHPDocLength() { + return fPHPDocLength; + } + + /** + * @return + */ + public int getPHPDocOffset() { + return fPHPDocOffset; + } + + /** + * @return + */ + public String getUsage() { + return fUsage; + } + + /** * @param string */ public void setClassname(String string) { @@ -57,4 +93,39 @@ 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; + } + + /** + * @param string + */ + public void setUsage(String string) { + fUsage = string; + } + + /* (non-Javadoc) + * @see java.lang.Object#toString() + */ + public String toString() { + return super.toString()+"\n"+fFilename; + } + }