org.netbeans.modules.cnd.api.model/1 1.3 1

Interface CsmStatement

All Superinterfaces:
CsmObject, CsmOffsetable, CsmScopeElement
All Known Subinterfaces:
CsmCaseStatement, CsmCompoundStatement, CsmDeclarationStatement, CsmExceptionHandler, CsmExpressionStatement, CsmForStatement, CsmGotoStatement, CsmIfStatement, CsmLabel, CsmLoopStatement, CsmReturnStatement, CsmTryCatchStatement

public interface CsmStatement
extends CsmOffsetable, CsmObject, CsmScopeElement

Represents some statement - acts as a common ancestor for each of the particular statement interfaces

Nested Class Summary
static class CsmStatement.Kind
Nested classes/interfaces inherited from interface org.netbeans.modules.cnd.api.model.CsmOffsetable
Method Summary
 CsmStatement.Kind getKind()
          Gets this statement kind.
Methods inherited from interface org.netbeans.modules.cnd.api.model.CsmOffsetable
getContainingFile, getEndOffset, getEndPosition, getStartOffset, getStartPosition, getText
Methods inherited from interface org.netbeans.modules.cnd.api.model.CsmScopeElement

Method Detail


CsmStatement.Kind getKind()
Gets this statement kind. Kind determines, which derived interface is implemented by the instance. Never use instanceof operator instead of checking kind (you may use to just make sure that necessary interface is implemented, but first check the kind. For example, if a statement is an instance of CsmCompoundStatement, this does not mean, that this is really compound statement - it might be exceptoin handler or conditional statement

org.netbeans.modules.cnd.api.model/1 1.3 1

Built on November 23 2007.  |  Portions Copyright 1997-2007 Sun Microsystems, Inc. All rights reserved.

Project Features

About this Project

CND was started in November 2009, is owned by DimaZh, and has 233 members.
By use of this website, you agree to the NetBeans Policies and Terms of Use (revision 20160708.bf2ac18). © 2014, Oracle Corporation and/or its affiliates. Sponsored by Oracle logo
Please Confirm