Package org.eclipse.cdt.core.dom.ast.cpp
Interface ICPPMethod
- All Superinterfaces:
org.eclipse.core.runtime.IAdaptable,IBinding,ICPPBinding,ICPPFunction,ICPPMember,IFunction
- All Known Subinterfaces:
ICPPConstructor,ICPPConstructorSpecialization,ICPPMethodSpecialization
Base interface for methods, also used for constructors.
- Restriction:
- This interface is not intended to be implemented by clients.
- Restriction:
- This interface is not intended to be extended by clients.
-
Field Summary
FieldsFields inherited from interface org.eclipse.cdt.core.dom.ast.IBinding
EMPTY_BINDING_ARRAYFields inherited from interface org.eclipse.cdt.core.dom.ast.cpp.ICPPMember
v_private, v_protected, v_public -
Method Summary
Modifier and TypeMethodDescriptionbooleanIs this a destructor? Returns true if its name starts with '~'booleanReturns whether this is an explicit constructor or an explicit conversion operator.booleanisFinal()Returns whether this method is declared final.booleanReturns whether this is an implicit method (constructor, assignment operator, etc.)booleanReturns whether this method is declared override.booleanReturns whether this is a pure abstract methodbooleanReturns whether this method is declared to be virtual.Methods inherited from interface org.eclipse.core.runtime.IAdaptable
getAdapterMethods inherited from interface org.eclipse.cdt.core.dom.ast.IBinding
getLinkage, getName, getNameCharArray, getOwner, getScopeMethods inherited from interface org.eclipse.cdt.core.dom.ast.cpp.ICPPBinding
getQualifiedName, getQualifiedNameCharArray, isGloballyQualifiedMethods inherited from interface org.eclipse.cdt.core.dom.ast.cpp.ICPPFunction
getDeclaredType, getExceptionSpecification, getParameters, getRequiredArgumentCount, getType, hasParameterPack, isConstexpr, isDeleted, isExternC, isInline, isMutableMethods inherited from interface org.eclipse.cdt.core.dom.ast.cpp.ICPPMember
getClassOwner, getType, getVisibility, isStaticMethods inherited from interface org.eclipse.cdt.core.dom.ast.IFunction
getFunctionScope, isAuto, isExtern, isNoDiscard, isNoReturn, isRegister, isStatic, takesVarArgs
-
Field Details
-
EMPTY_CPPMETHOD_ARRAY
-
-
Method Details
-
isVirtual
boolean isVirtual()Returns whether this method is declared to be virtual. Does not detect whether the method is virtual because of overriding a virtual method from a base class. -
isDestructor
boolean isDestructor()Is this a destructor? Returns true if its name starts with '~' -
isImplicit
boolean isImplicit()Returns whether this is an implicit method (constructor, assignment operator, etc.)- Since:
- 4.0
-
isExplicit
boolean isExplicit()Returns whether this is an explicit constructor or an explicit conversion operator.- Since:
- 5.3
-
isPureVirtual
boolean isPureVirtual()Returns whether this is a pure abstract method- Since:
- 5.1
-
isOverride
boolean isOverride()Returns whether this method is declared override.- Since:
- 5.5
-
isFinal
boolean isFinal()Returns whether this method is declared final.- Since:
- 5.5
-