import java.util.Map;
import java.util.Stack;
+import net.sourceforge.phpdt.internal.core.JavaElement;
+import net.sourceforge.phpdt.internal.core.SourceField;
+import net.sourceforge.phpdt.internal.core.SourceFieldElementInfo;
+import net.sourceforge.phpdt.internal.core.SourceMethod;
+import net.sourceforge.phpdt.internal.core.SourceTypeElementInfo;
+
import net.sourceforge.phpdt.core.ICompilationUnit;
import net.sourceforge.phpdt.core.IField;
import net.sourceforge.phpdt.core.IJavaElement;
exceptionTypes,
true);
}
+
/**
* @see ISourceElementRequestor
*/
IField handle = null;
if (parentHandle.getElementType() == IJavaElement.TYPE) {
- handle = new SourceField((IType) parentHandle, new String(name));
+ handle = new SourceField(parentHandle, new String(name));
} else {
Assert.isTrue(false); // Should not happen
}
}
String[] parameterTypeSigs = convertTypeNamesToSigs(parameterTypes);
- if (parentHandle.getElementType() == IJavaElement.TYPE) {
- handle = new SourceMethod((IType) parentHandle, new String(name), parameterTypeSigs);
- } else if (parentHandle.getElementType() == IJavaElement.COMPILATION_UNIT) {
- handle = new SourceMethod((ICompilationUnit) parentHandle, name==null?"":new String(name), parameterTypeSigs);
- } else {
- Assert.isTrue(false); // Should not happen
- }
- resolveDuplicates(handle);
-
+ // TODO : jsurfer changed
+// if (parentHandle.getElementType() == IJavaElement.TYPE) {
+ handle = new SourceMethod(parentHandle, new String(name), parameterTypeSigs);
+// }
+// else {
+// Assert.isTrue(false); // Should not happen
+// }
+ resolveDuplicates(handle);
+
SourceMethodElementInfo info = new SourceMethodElementInfo();
info.setSourceRangeStart(declarationStart);
int flags = modifiers;