org.netbeans.modules.cnd.api.model.deep
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
getKind
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
|
Project Features
About this Project
|