org.eclipse.cdt.core.dom.ast
Interface IASTCaseStatement
- All Superinterfaces:
- IASTNode, IASTStatement
- public interface IASTCaseStatement
- extends IASTStatement
This is a case in a switch statement. Note that in the grammar, a statement
is part of the clause. For the AST, just go on to the next statement to find
it. It's really only there to ensure that there is at least one statement
following this clause.
Field Summary |
static ASTNodeProperty |
EXPRESSION
ASTNodeProperty that represents the relationship between a
case statement and the expression it contains. |
Methods inherited from interface org.eclipse.cdt.core.dom.ast.IASTNode |
accept, contains, getContainingFilename, getFileLocation, getNodeLocations, getParent, getPropertyInParent, getRawSignature, getTranslationUnit, setParent, setPropertyInParent |
EXPRESSION
public static final ASTNodeProperty EXPRESSION
ASTNodeProperty
that represents the relationship between a
case statement and the expression it contains.
getExpression
public IASTExpression getExpression()
- The expression that determines whether this case should be taken.
- Returns:
setExpression
public void setExpression(IASTExpression expression)
- Set the expression.
- Parameters:
expression
-
Copyright (c) IBM Corp. and others 2004. All Rights Reserved.