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