org.eclipse.cdt.core.dom.ast.cpp
Class SemanticQueries
java.lang.Object
org.eclipse.cdt.core.dom.ast.cpp.SemanticQueries
public class SemanticQueries
- extends java.lang.Object
This class exposes semantic queries about C++ code to clients such
as code analysis.
- Since:
- 5.5
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SemanticQueries
public SemanticQueries()
isCopyOrMoveConstructor
public static boolean isCopyOrMoveConstructor(ICPPConstructor constructor)
isMoveConstructor
public static boolean isMoveConstructor(ICPPConstructor constructor)
isCopyConstructor
public static boolean isCopyConstructor(ICPPConstructor constructor)
getPureVirtualMethods
public static ICPPMethod[] getPureVirtualMethods(ICPPClassType classType,
IASTNode point)
- Returns all pure virtual methods of a class. Inherited pure virtual methods
that have not been implemented are also returned.
NOTE: The method produces complete results for template instantiations
but doesn't take into account base classes and methods dependent on unspecified
template parameters.
- Parameters:
classType
- the class whose pure virtual methods should be returnedpoint
- the point of template instantiation, if applicable
- Returns:
- an array containing all pure virtual methods of the class
- Since:
- 5.6
Copyright (c) IBM Corp. and others 2004, 2012. All Rights Reserved.