diff options
Diffstat (limited to 'core/org.eclipse.cdt.core/parser/org/eclipse/cdt/internal/core/dom/parser/cpp/CPPClassInstance.java')
-rw-r--r-- | core/org.eclipse.cdt.core/parser/org/eclipse/cdt/internal/core/dom/parser/cpp/CPPClassInstance.java | 17 |
1 files changed, 5 insertions, 12 deletions
diff --git a/core/org.eclipse.cdt.core/parser/org/eclipse/cdt/internal/core/dom/parser/cpp/CPPClassInstance.java b/core/org.eclipse.cdt.core/parser/org/eclipse/cdt/internal/core/dom/parser/cpp/CPPClassInstance.java index c27731c1ed8..1cb82293225 100644 --- a/core/org.eclipse.cdt.core/parser/org/eclipse/cdt/internal/core/dom/parser/cpp/CPPClassInstance.java +++ b/core/org.eclipse.cdt.core/parser/org/eclipse/cdt/internal/core/dom/parser/cpp/CPPClassInstance.java @@ -31,14 +31,13 @@ import org.eclipse.cdt.core.dom.ast.cpp.ICPPScope; import org.eclipse.cdt.core.dom.ast.cpp.ICPPTemplateInstance; import org.eclipse.cdt.core.parser.util.ArrayUtil; import org.eclipse.cdt.core.parser.util.ObjectMap; -import org.eclipse.cdt.internal.core.dom.parser.ASTInternal; import org.eclipse.cdt.internal.core.dom.parser.cpp.semantics.CPPTemplates; import org.eclipse.cdt.internal.core.index.IIndexType; /** * @author aniefer */ -public class CPPClassInstance extends CPPInstance implements ICPPClassType, ICPPInternalClassType { +public class CPPClassInstance extends CPPInstance implements ICPPClassType, ICPPInternalBinding { private CPPClassSpecializationScope instanceScope; /** @@ -114,7 +113,10 @@ public class CPPClassInstance extends CPPInstance implements ICPPClassType, ICPP * @see org.eclipse.cdt.core.dom.ast.cpp.ICPPClassType#getDeclaredMethods() */ public ICPPMethod[] getDeclaredMethods() throws DOMException { - return null; + CPPClassSpecializationScope scope = (CPPClassSpecializationScope) getCompositeScope(); + if (scope.isFullyCached()) + return scope.getDeclaredMethods(); + return ICPPMethod.EMPTY_CPPMETHOD_ARRAY; } /* (non-Javadoc) @@ -196,15 +198,6 @@ public class CPPClassInstance extends CPPInstance implements ICPPClassType, ICPP return ICPPClassType.EMPTY_CLASS_ARRAY; } - public ICPPMethod[] getConversionOperators() throws DOMException { - IScope scope = getCompositeScope(); - if (scope instanceof CPPClassSpecializationScope) { - if (ASTInternal.isFullyCached(scope)) - return ((CPPClassSpecializationScope)scope).getConversionOperators(); - } - return ICPPMethod.EMPTY_CPPMETHOD_ARRAY; - } - @Override public boolean equals(Object obj) { return obj instanceof ICPPClassType && isSameType((ICPPClassType) obj); |