Eclipse CDT
Pre-release 3.0

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.
 
Fields inherited from interface org.eclipse.cdt.core.dom.ast.IASTStatement
EMPTY_STATEMENT_ARRAY
 
Fields inherited from interface org.eclipse.cdt.core.dom.ast.IASTNode
EMPTY_NODE_ARRAY
 
Method Summary
 IASTExpression getExpression()
          The expression that determines whether this case should be taken.
 void setExpression(IASTExpression expression)
          Set the expression.
 
Methods inherited from interface org.eclipse.cdt.core.dom.ast.IASTNode
accept, getContainingFilename, getFileLocation, getNodeLocations, getParent, getPropertyInParent, getRawSignature, getTranslationUnit, setParent, setPropertyInParent
 

Field Detail

EXPRESSION

static final ASTNodeProperty EXPRESSION
ASTNodeProperty that represents the relationship between a case statement and the expression it contains.

Method Detail

getExpression

IASTExpression getExpression()
The expression that determines whether this case should be taken.

Returns:

setExpression

void setExpression(IASTExpression expression)
Set the expression.

Parameters:
expression -

Eclipse CDT
Pre-release 3.0

Copyright (c) IBM Corp. and others 2004. All Rights Reserved.