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

org.netbeans.modules.cnd.api.model
Interface CsmType

All Superinterfaces:
CsmObject, CsmOffsetable

public interface CsmType
extends CsmOffsetable

Represents type Comments about offsetable part and text of type objects: type has start-end around it's classifier part, while return full text, i.e int a[5],b; ^ ^ | | st end for variable a getText() returns "int[5]" for variable b getText() returns "int"


Nested Class Summary
 
Nested classes/interfaces inherited from interface org.netbeans.modules.cnd.api.model.CsmOffsetable
CsmOffsetable.Position
 
Method Summary
 int getArrayDepth()
          array depth, i.e.
 String getCanonicalText()
          Returns a canonical representation of this type.
 CsmClassifier getClassifier()
          gets classifier this type references to
 int getPointerDepth()
          if this is a pointer, returns the number of asterisks
 boolean isBuiltInBased(boolean resolveTypeChain)
          checks wether type is reference to built-in type or not
 boolean isConst()
           
 boolean isPointer()
           
 boolean isReference()
           
 
Methods inherited from interface org.netbeans.modules.cnd.api.model.CsmOffsetable
getContainingFile, getEndOffset, getEndPosition, getStartOffset, getStartPosition, getText
 

Method Detail

getClassifier

CsmClassifier getClassifier()
gets classifier this type references to


getArrayDepth

int getArrayDepth()
array depth, i.e. 2 for "int[][]", 1 for "int[]", 0 for "int"


isPointer

boolean isPointer()

getPointerDepth

int getPointerDepth()
if this is a pointer, returns the number of asterisks


isReference

boolean isReference()

isConst

boolean isConst()

isBuiltInBased

boolean isBuiltInBased(boolean resolveTypeChain)
checks wether type is reference to built-in type or not

Parameters:
resolveTypeChain - if true then resolve all typedefs (slow down)

getCanonicalText

String getCanonicalText()
Returns a canonical representation of this type. This canonical representation is used to form signatures and compare types with each other


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