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

org.netbeans.modules.cnd.api.model
Interface CsmVariable<T>

All Superinterfaces:
CsmDeclaration<T>, CsmIdentifiable<T>, CsmNamedElement, CsmObject, CsmOffsetable, CsmOffsetableDeclaration<T>, CsmQualifiedNamedElement, CsmScopeElement
All Known Subinterfaces:
CsmField, CsmParameter, CsmVariableDefinition

public interface CsmVariable<T>
extends CsmOffsetableDeclaration<T>

Represents a variable


Nested Class Summary
 
Nested classes/interfaces inherited from interface org.netbeans.modules.cnd.api.model.CsmDeclaration
CsmDeclaration.Kind
 
Nested classes/interfaces inherited from interface org.netbeans.modules.cnd.api.model.CsmOffsetable
CsmOffsetable.Position
 
Method Summary
 String getDeclarationText()
           
 CsmVariableDefinition getDefinition()
          Gets this (static) variable definition
 String getDisplayText()
          Gets text as it is displayed to user.
 CsmExpression getInitialValue()
          Gets this variable initial value
 CsmType getType()
          Gets this variable type
 boolean isExtern()
           
 
Methods inherited from interface org.netbeans.modules.cnd.api.model.CsmDeclaration
getKind, getUniqueName
 
Methods inherited from interface org.netbeans.modules.cnd.api.model.CsmQualifiedNamedElement
getQualifiedName
 
Methods inherited from interface org.netbeans.modules.cnd.api.model.CsmNamedElement
getName
 
Methods inherited from interface org.netbeans.modules.cnd.api.model.CsmScopeElement
getScope
 
Methods inherited from interface org.netbeans.modules.cnd.api.model.CsmIdentifiable
getUID
 
Methods inherited from interface org.netbeans.modules.cnd.api.model.CsmOffsetable
getContainingFile, getEndOffset, getEndPosition, getStartOffset, getStartPosition, getText
 

Method Detail

getType

CsmType getType()
Gets this variable type


getInitialValue

CsmExpression getInitialValue()
Gets this variable initial value


getDeclarationText

String getDeclarationText()

getDefinition

CsmVariableDefinition getDefinition()
Gets this (static) variable definition


isExtern

boolean isExtern()

getDisplayText

String getDisplayText()
Gets text as it is displayed to user. It's necessary here especially for pointers to functions, for which just typeName+' '+variableName does not work TODO: move it to one of the ancestors?


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 194 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