package net.sourceforge.phpdt.internal.core;
import net.sourceforge.phpdt.core.IField;
-import net.sourceforge.phpdt.core.IType;
+import net.sourceforge.phpdt.core.IJavaElement;
import net.sourceforge.phpdt.core.JavaModelException;
import net.sourceforge.phpdt.core.Signature;
import net.sourceforge.phpdt.core.jdom.IDOMNode;
/* 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() {
* @see IField
*/
public String getTypeSignature() throws JavaModelException {
- SourceFieldElementInfo info = (SourceFieldElementInfo) getElementInfo();
- return info.getTypeSignature();
+// SourceFieldElementInfo info = (SourceFieldElementInfo) getElementInfo();
+// return info.getTypeSignature();
+ return "";
}
/**
* @private Debugging purposes