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

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

All Superinterfaces:
CsmIdentifiable<CsmFile>, CsmNamedElement, CsmObject, CsmScope, CsmValidable

public interface CsmFile
extends CsmNamedElement, CsmScope, CsmValidable, CsmIdentifiable<CsmFile>

Represents a source file


Method Summary
 String getAbsolutePath()
          Gets this file absolute path
 List<CsmOffsetableDeclaration> getDeclarations()
          Sorted (by start offset) list of declarations in the file
 List<CsmInclude> getIncludes()
          Sorted (by start offset) list of #include directives in the file
 List<CsmMacro> getMacros()
          Sorted (by start offset) list of #define directives in the file
 CsmProject getProject()
          Gets the project, to which the file belongs
 String getText()
          Gets this file text
 String getText(int start, int end)
          Gets this file text
 boolean isHeaderFile()
          returns true if file is header file.
 boolean isParsed()
          Returns true if the file has been already parsed (i.e.
 boolean isSourceFile()
          returns true if file is source file.
 void scheduleParsing(boolean wait)
           
 
Methods inherited from interface org.netbeans.modules.cnd.api.model.CsmNamedElement
getName
 
Methods inherited from interface org.netbeans.modules.cnd.api.model.CsmScope
getScopeElements
 
Methods inherited from interface org.netbeans.modules.cnd.api.model.CsmValidable
isValid
 
Methods inherited from interface org.netbeans.modules.cnd.api.model.CsmIdentifiable
getUID
 

Method Detail

getAbsolutePath

String getAbsolutePath()
Gets this file absolute path


getProject

CsmProject getProject()
Gets the project, to which the file belongs


getText

String getText()
Gets this file text


getText

String getText(int start,
               int end)
Gets this file text


getIncludes

List<CsmInclude> getIncludes()
Sorted (by start offset) list of #include directives in the file


getDeclarations

List<CsmOffsetableDeclaration> getDeclarations()
Sorted (by start offset) list of declarations in the file


getMacros

List<CsmMacro> getMacros()
Sorted (by start offset) list of #define directives in the file


isParsed

boolean isParsed()
Returns true if the file has been already parsed (i.e. was parsed since last change), otherwise false


scheduleParsing

void scheduleParsing(boolean wait)
                     throws InterruptedException
Throws:
InterruptedException

isSourceFile

boolean isSourceFile()
returns true if file is source file.


isHeaderFile

boolean isHeaderFile()
returns true if file is header file.


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