summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'core/org.eclipse.cdt.core/parser/org/eclipse/cdt/internal/core/dom/parser/cpp/CPPClassSpecialization.java')
-rw-r--r--core/org.eclipse.cdt.core/parser/org/eclipse/cdt/internal/core/dom/parser/cpp/CPPClassSpecialization.java20
1 files changed, 20 insertions, 0 deletions
diff --git a/core/org.eclipse.cdt.core/parser/org/eclipse/cdt/internal/core/dom/parser/cpp/CPPClassSpecialization.java b/core/org.eclipse.cdt.core/parser/org/eclipse/cdt/internal/core/dom/parser/cpp/CPPClassSpecialization.java
index 7c5327c..468edd0 100644
--- a/core/org.eclipse.cdt.core/parser/org/eclipse/cdt/internal/core/dom/parser/cpp/CPPClassSpecialization.java
+++ b/core/org.eclipse.cdt.core/parser/org/eclipse/cdt/internal/core/dom/parser/cpp/CPPClassSpecialization.java
@@ -9,6 +9,7 @@
* Andrew Niefer (IBM) - Initial API and implementation
* Bryan Wilkinson (QNX)
* Markus Schorn (Wind River Systems)
+ * Thomas Corbat (IFS)
*******************************************************************************/
package org.eclipse.cdt.internal.core.dom.parser.cpp;
@@ -124,6 +125,16 @@ public class CPPClassSpecialization extends CPPSpecialization
public ICPPFunctionType getType() {
return new ProblemFunctionType(getID());
}
+
+ @Override
+ public boolean isOverride() {
+ return false;
+ }
+
+ @Override
+ public boolean isFinal() {
+ return false;
+ }
}
private ICPPClassSpecializationScope specScope;
@@ -422,4 +433,13 @@ public class CPPClassSpecialization extends CPPSpecialization
return ((ICPPClassType) owner1).isSameType((ICPPClassType) owner2);
}
+
+ @Override
+ public boolean isFinal() {
+ ICPPASTCompositeTypeSpecifier typeSpecifier = getCompositeTypeSpecifier();
+ if (typeSpecifier != null) {
+ return typeSpecifier.isFinal();
+ }
+ return false;
+ }
}