Class CppCompilationUnitFragmentAccess

  • All Implemented Interfaces:
    IElementAccess, INamedElementAccess

    public final class CppCompilationUnitFragmentAccess
    extends ElementAccess<com.hello2morrow.sonargraph.languageprovider.cplusplus.model.path.CompilationUnitFragment>
    Compilation unit fragments are the header files included via C/C++ "#include" statements. The root of an included hierarchy can only be accessed from a CppSourceFileAccess object.
    • Constructor Detail

      • CppCompilationUnitFragmentAccess

        public CppCompilationUnitFragmentAccess​(com.hello2morrow.sonargraph.languageprovider.cplusplus.model.path.CompilationUnitFragment element)
        Internal use only
    • Method Detail

      • getIncludedFiles

        public java.util.List<CppCompilationUnitFragmentAccess> getIncludedFiles()
        Returns a list of included header files packaged as CppCompilationUnitFragments.
        Returns:
        see above
      • getAssociatedHeaderFile

        public ICppSourceFileAccess getAssociatedHeaderFile()
        Get the header file represented by this fragment
        Returns:
        see above
      • isExternal

        public boolean isExternal()
        Description copied from class: ElementAccess
        The external state.
        Specified by:
        isExternal in interface IElementAccess
        Overrides:
        isExternal in class ElementAccess<com.hello2morrow.sonargraph.languageprovider.cplusplus.model.path.CompilationUnitFragment>
        Returns:
        true, if associated header file is external
      • getLineNumber

        public int getLineNumber()
        Returns:
        Line number of include statement in parent