|
org.netbeans.modules.cnd.api.model/1 1.3 1 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
org.netbeans.modules.cnd.api.model.deep
Interface CsmCondition
- All Superinterfaces:
- CsmObject, CsmOffsetable
public interface CsmCondition
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 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Built on November 23 2007. | Portions Copyright 1997-2007 Sun Microsystems, Inc. All rights reserved.