Package org.eclipse.cdt.core.dom.ast.cpp
Interface ICPPASTLambdaExpression
- All Superinterfaces:
IASTExpression
,IASTImplicitDestructorNameOwner
,IASTImplicitNameOwner
,IASTInitializerClause
,IASTNode
,ICPPASTExpression
,ICPPASTInitializerClause
Lambda expression, introduced in C++11.
- Since:
- 5.3
- Restriction:
- This interface is not intended to be implemented by clients.
- Restriction:
- This interface is not intended to be extended by clients.
-
Nested Class Summary
Modifier and TypeInterfaceDescriptionstatic enum
The capture default can be by copy, by reference or unspecified.Nested classes/interfaces inherited from interface org.eclipse.cdt.core.dom.ast.IASTExpression
IASTExpression.ValueCategory
Nested classes/interfaces inherited from interface org.eclipse.cdt.core.dom.ast.IASTNode
IASTNode.CopyStyle
-
Field Summary
Modifier and TypeFieldDescriptionstatic final ASTNodeProperty
static final ASTNodeProperty
static final ASTNodeProperty
Fields inherited from interface org.eclipse.cdt.core.dom.ast.IASTExpression
EMPTY_EXPRESSION_ARRAY
Fields inherited from interface org.eclipse.cdt.core.dom.ast.IASTImplicitDestructorNameOwner
IMPLICIT_DESTRUCTOR_NAME
Fields inherited from interface org.eclipse.cdt.core.dom.ast.IASTImplicitNameOwner
IMPLICIT_NAME
Fields inherited from interface org.eclipse.cdt.core.dom.ast.IASTNode
EMPTY_NODE_ARRAY
-
Method Summary
Modifier and TypeMethodDescriptionvoid
addCapture
(ICPPASTCapture capture) Not allowed on frozen AST.getBody()
Returns the compound statement of this lambda expression.Returns the capture default for this lambda expression.Returns the array of captures for this lambda expression.Returns an implicit name that represents the closure type.Returns the lambda declarator for this lambda expression, ornull
in case it was not specified.Returns an implicit name that represents the implicit function call operator of the closure.void
setBody
(IASTCompoundStatement body) Not allowed on frozen AST.void
Not allowed on frozen AST.void
Not allowed on frozen AST.Methods inherited from interface org.eclipse.cdt.core.dom.ast.IASTExpression
copy, copy, getExpressionType, getValueCategory, isLValue
Methods inherited from interface org.eclipse.cdt.core.dom.ast.IASTImplicitDestructorNameOwner
getImplicitDestructorNames
Methods inherited from interface org.eclipse.cdt.core.dom.ast.IASTImplicitNameOwner
getImplicitNames
Methods inherited from interface org.eclipse.cdt.core.dom.ast.IASTNode
accept, contains, getChildren, getContainingFilename, getFileLocation, getLeadingSyntax, getNodeLocations, getOriginalNode, getParent, getPropertyInParent, getRawSignature, getSyntax, getTrailingSyntax, getTranslationUnit, isActive, isFrozen, isPartOfTranslationUnitFile, setParent, setPropertyInParent
Methods inherited from interface org.eclipse.cdt.core.dom.ast.cpp.ICPPASTInitializerClause
getEvaluation
-
Field Details
-
CAPTURE
-
DECLARATOR
-
BODY
-
-
Method Details
-
getCaptureDefault
ICPPASTLambdaExpression.CaptureDefault getCaptureDefault()Returns the capture default for this lambda expression. -
getCaptures
ICPPASTCapture[] getCaptures()Returns the array of captures for this lambda expression. -
getClosureTypeName
IASTImplicitName getClosureTypeName()Returns an implicit name that represents the closure type. -
getDeclarator
ICPPASTFunctionDeclarator getDeclarator()Returns the lambda declarator for this lambda expression, ornull
in case it was not specified. -
getFunctionCallOperatorName
IASTImplicitName getFunctionCallOperatorName()Returns an implicit name that represents the implicit function call operator of the closure. -
getBody
IASTCompoundStatement getBody()Returns the compound statement of this lambda expression. Can benull
when creating AST for content assist. -
setCaptureDefault
Not allowed on frozen AST.- See Also:
-
addCapture
Not allowed on frozen AST.- See Also:
-
setDeclarator
Not allowed on frozen AST.- See Also:
-
setBody
Not allowed on frozen AST.- See Also:
-