org.netbeans.modules.cnd.api.model
Interface CsmOffsetable
- All Superinterfaces:
- CsmObject
- All Known Subinterfaces:
- CsmCaseStatement, CsmClass, CsmClassForwardDeclaration, CsmCompoundClassifier<T>, CsmCompoundStatement, CsmCondition, CsmConstructor, CsmDeclarationStatement, CsmEnum, CsmEnumerator, CsmExceptionHandler, CsmExpression, CsmExpressionStatement, CsmField, CsmForStatement, CsmFriend<T>, CsmFriendClass, CsmFriendFunction, CsmFunction<T>, CsmFunctionDefinition<T>, CsmGotoStatement, CsmIfStatement, CsmInclude, CsmInheritance, CsmLabel, CsmLoopStatement, CsmMacro, CsmMember<T>, CsmMethod<T>, CsmNamespaceAlias, CsmNamespaceDefinition, CsmOffsetableDeclaration<T>, CsmParameter, CsmReturnStatement, CsmStatement, CsmTryCatchStatement, CsmType, CsmTypedef, CsmUsingDeclaration, CsmUsingDirective, CsmVariable<T>, CsmVariableDefinition
public interface CsmOffsetable - extends CsmObject
An object, which has correspondent file and a pair of offsets (start and end)
getContainingFile
CsmFile getContainingFile()
- gets the file, which contains the given object
getStartOffset
int getStartOffset()
- gets the offset of the 1-st character of the object
getEndOffset
int getEndOffset()
- gets the offset of the character, following by the last character of the object
getStartPosition
CsmOffsetable.Position getStartPosition()
- gets the position of the 1-st character of the object
getEndPosition
CsmOffsetable.Position getEndPosition()
- gets the position of the character, following by the last character of the object
getText
String getText()
- gets this object's text
|
|