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

org.netbeans.modules.cnd.api.model.deep
Interface CsmCondition

All Superinterfaces:
CsmObject, CsmOffsetable

public interface CsmCondition
extends CsmOffsetable

Represents condition. In C++, conditions are either expressions (which return bool or integer value) or declaration statement TODO: perhaps it's worth to subclass for expression and declaraion kind rather then having 2 methods, getExpression() and getDeclaration(), one of which returns null?


Nested Class Summary
static class CsmCondition.Kind
           
 
Nested classes/interfaces inherited from interface org.netbeans.modules.cnd.api.model.CsmOffsetable
CsmOffsetable.Position
 
Method Summary
 CsmVariable getDeclaration()
          In the case this condition kind id DECLARATION, gets the declaration statement, otherwise null
 CsmExpression getExpression()
          In the case this condition kind id EXPRESSION, gets the expression, otherwise null
 CsmCondition.Kind getKind()
           
 
Methods inherited from interface org.netbeans.modules.cnd.api.model.CsmOffsetable
getContainingFile, getEndOffset, getEndPosition, getStartOffset, getStartPosition, getText
 

Method Detail

getKind

CsmCondition.Kind getKind()

getExpression

CsmExpression getExpression()
In the case this condition kind id EXPRESSION, gets the expression, otherwise null


getDeclaration

CsmVariable getDeclaration()
In the case this condition kind id DECLARATION, gets the declaration statement, otherwise null


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 193 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
 
 
Close
loading
Please Confirm
Close