| org.netbeans.modules.cnd.api.model.deep.CsmCondition
All known Subclasses: org.netbeans.modules.cnd.modelimpl.csm.deep.ConditionExpressionImpl, org.netbeans.modules.cnd.modelimpl.csm.deep.ConditionDeclarationImpl,
CsmCondition | public interface CsmCondition extends CsmOffsetable,CsmScopeElement(Code) | | 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?
author: Vladimir Kvashin |
Inner Class :public enum Kind | |
getDeclaration | CsmVariable getDeclaration()(Code) | | In the case this condition kind id DECLARATION, gets the declaration statement, otherwise null
|
getExpression | CsmExpression getExpression()(Code) | | In the case this condition kind id EXPRESSION, gets the expression, otherwise null
|
|
|