|
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
Interface CsmType
- All Superinterfaces:
- CsmObject, CsmOffsetable
public interface CsmType
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 | |||||||||
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.