Class CppCompilationUnitFragmentAccess
- java.lang.Object
-
- com.hello2morrow.sonargraph.core.api.model.ElementAccess<com.hello2morrow.sonargraph.languageprovider.cplusplus.model.path.CompilationUnitFragment>
-
- com.hello2morrow.sonargraph.languageprovider.cplusplus.api.model.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.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class com.hello2morrow.sonargraph.core.api.model.ElementAccess
ElementAccess.IAccessFactory
-
Nested classes/interfaces inherited from interface com.hello2morrow.sonargraph.api.model.INamedElementAccess
INamedElementAccess.INamedElementAccessVisitor
-
-
Constructor Summary
Constructors Constructor Description CppCompilationUnitFragmentAccess(com.hello2morrow.sonargraph.languageprovider.cplusplus.model.path.CompilationUnitFragment element)
Internal use only
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ICppSourceFileAccess
getAssociatedHeaderFile()
Get the header file represented by this fragmentjava.util.List<CppCompilationUnitFragmentAccess>
getIncludedFiles()
Returns a list of included header files packaged as CppCompilationUnitFragments.int
getLineNumber()
boolean
isExternal()
The external state.-
Methods inherited from class com.hello2morrow.sonargraph.core.api.model.ElementAccess
accept, equals, getChildren, getElement, getFullyQualifiedName, getIncomingDependenciesRecursively, getIncomingDependenciesRecursively, getIssueCount, getMetricLevel, getName, getNameWithSignature, getOutgoingDependenciesRecursively, getOutgoingDependenciesRecursively, getOutgoingDependenciesRecursively, getParent, getParent, getReferencedElementsRecursively, getReferencedElementsRecursively, getReferencedElementsRecursively, getReferencingElementsRecursively, getReferencingElementsRecursively, getShortName, getShortNameWithSignature, hashCode, ignoreIssues, isExcluded, setFactory, toString
-
Methods inherited from interface com.hello2morrow.sonargraph.api.model.INamedElementAccess
getIssueCount
-
-
-
-
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 interfaceIElementAccess
- Overrides:
isExternal
in classElementAccess<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
-
-