public class SemanticQueries extends Object
Constructor and Description |
---|
SemanticQueries() |
Modifier and Type | Method and Description |
---|---|
static ICPPMethod[] |
getPureVirtualMethods(ICPPClassType classType)
Returns all pure virtual methods of a class.
|
static ICPPMethod[] |
getPureVirtualMethods(ICPPClassType classType,
IASTNode point)
Deprecated.
Use
SemanticQueries getPureVirtualMethods(ICPPClassType) instead. |
static boolean |
isCopyAssignmentOperator(ICPPMethod method) |
static boolean |
isCopyConstructor(ICPPConstructor constructor) |
static boolean |
isCopyOrMoveAssignmentOperator(ICPPMethod method) |
static boolean |
isCopyOrMoveConstructor(ICPPConstructor constructor) |
static boolean |
isMoveAssignmentOperator(ICPPMethod method) |
static boolean |
isMoveConstructor(ICPPConstructor constructor) |
static boolean |
isUnknownBuiltin(IProblemBinding binding,
IASTNode node)
Returns whether a problem binding represents a name resolution error due to an unknown built-in.
|
public static boolean isCopyOrMoveConstructor(ICPPConstructor constructor)
public static boolean isMoveConstructor(ICPPConstructor constructor)
public static boolean isCopyConstructor(ICPPConstructor constructor)
public static boolean isCopyAssignmentOperator(ICPPMethod method)
public static boolean isCopyOrMoveAssignmentOperator(ICPPMethod method)
public static boolean isMoveAssignmentOperator(ICPPMethod method)
public static ICPPMethod[] getPureVirtualMethods(ICPPClassType classType)
classType
- the class whose pure virtual methods should be returned@Deprecated public static ICPPMethod[] getPureVirtualMethods(ICPPClassType classType, IASTNode point)
SemanticQueries
getPureVirtualMethods(ICPPClassType)
instead.public static boolean isUnknownBuiltin(IProblemBinding binding, IASTNode node)
binding
- The problem binding to test.node
- Any node in the AST. Used to access the AST root.Copyright (c) IBM Corp. and others 2004, 2020. All Rights Reserved.