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

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)


Nested Class Summary
static interface CsmOffsetable.Position
           
 
Method Summary
 CsmFile getContainingFile()
          gets the file, which contains the given object
 int getEndOffset()
          gets the offset of the character, following by the last character of the object
 CsmOffsetable.Position getEndPosition()
          gets the position of the character, following by the last character of the object
 int getStartOffset()
          gets the offset of the 1-st character of the object
 CsmOffsetable.Position getStartPosition()
          gets the position of the 1-st character of the object
 String getText()
          gets this object's text
 

Method Detail

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


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