*******************************************************************************/
package net.sourceforge.phpdt.internal.core;
+import net.sourceforge.phpdt.core.IJavaElement;
+import net.sourceforge.phpdt.internal.core.JavaElement;
+
import net.sourceforge.phpdt.core.IField;
import net.sourceforge.phpdt.core.IType;
import net.sourceforge.phpdt.core.JavaModelException;
/* package */ class SourceField extends Member implements IField {
-/**
- * Constructs a handle to the field with the given name in the specified type.
- */
-protected SourceField(IType parent, String name) {
- super(FIELD, parent, name);
-}
+ /**
+ * Constructs a handle to the field with the given name in the specified type.
+ */
+ protected SourceField(JavaElement parent, String name) {
+ super(parent, name);
+ }
+ public boolean equals(Object o) {
+ if (!(o instanceof SourceField)) return false;
+ return super.equals(o);
+ }
/**
* @see JavaElement#equalsDOMNode
*/
return info.initializationSource;
}
/**
+ * @see IJavaElement
+ */
+public int getElementType() {
+ return FIELD;
+}
+/**
* @see JavaElement#getHandleMemento()
*/
protected char getHandleMementoDelimiter() {