Class DirectoryAccess
- java.lang.Object
-
- com.hello2morrow.sonargraph.core.api.model.ElementAccess<com.hello2morrow.sonargraph.core.model.path.DirectoryPath>
-
- com.hello2morrow.sonargraph.core.api.model.DirectoryAccess
-
- All Implemented Interfaces:
IDirectoryAccess
,IElementAccess
,INamedElementAccess
- Direct Known Subclasses:
CppIncludeDirectoryAccess
,CppRootDirectoryPathAccess
,CppWeakRootDirectoryAccess
public class DirectoryAccess extends ElementAccess<com.hello2morrow.sonargraph.core.model.path.DirectoryPath> implements IDirectoryAccess
Access object encapsulating directories.
-
-
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.IDirectoryAccess
IDirectoryAccess.IVisitor
-
Nested classes/interfaces inherited from interface com.hello2morrow.sonargraph.api.model.INamedElementAccess
INamedElementAccess.INamedElementAccessVisitor
-
-
Constructor Summary
Constructors Constructor Description DirectoryAccess(com.hello2morrow.sonargraph.core.model.path.DirectoryPath element)
Internal use only
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
accept(INamedElementAccess.INamedElementAccessVisitor visitor)
Internaljava.lang.String
getAbsolutePath()
de.schlichtherle.truezip.file.TFile
getFile()
Returns the File object associated with this directoryjava.lang.Object
getMetricLevel()
Internal use onlyboolean
isRootDirectory()
boolean
isSourceRootDirectory()
-
Methods inherited from class com.hello2morrow.sonargraph.core.api.model.ElementAccess
equals, getChildren, getElement, getFullyQualifiedName, getIncomingDependenciesRecursively, getIncomingDependenciesRecursively, getIssueCount, getName, getNameWithSignature, getOutgoingDependenciesRecursively, getOutgoingDependenciesRecursively, getOutgoingDependenciesRecursively, getParent, getParent, getReferencedElementsRecursively, getReferencedElementsRecursively, getReferencedElementsRecursively, getReferencingElementsRecursively, getReferencingElementsRecursively, getShortName, getShortNameWithSignature, hashCode, ignoreIssues, isExcluded, isExternal, setFactory, toString
-
Methods inherited from interface com.hello2morrow.sonargraph.api.model.IElementAccess
getName, getNameWithSignature, getShortName, getShortNameWithSignature, ignoreIssues, isExcluded, isExternal
-
Methods inherited from interface com.hello2morrow.sonargraph.api.model.INamedElementAccess
getChildren, getFullyQualifiedName, getIncomingDependenciesRecursively, getIncomingDependenciesRecursively, getIssueCount, getIssueCount, getOutgoingDependenciesRecursively, getOutgoingDependenciesRecursively, getOutgoingDependenciesRecursively, getParent, getParent, getReferencedElementsRecursively, getReferencedElementsRecursively, getReferencedElementsRecursively, getReferencingElementsRecursively, getReferencingElementsRecursively
-
-
-
-
Method Detail
-
getMetricLevel
public java.lang.Object getMetricLevel()
Description copied from class:ElementAccess
Internal use only- Overrides:
getMetricLevel
in classElementAccess<com.hello2morrow.sonargraph.core.model.path.DirectoryPath>
-
getFile
public de.schlichtherle.truezip.file.TFile getFile()
Returns the File object associated with this directory- Specified by:
getFile
in interfaceIDirectoryAccess
- Returns:
- see above
-
getAbsolutePath
public java.lang.String getAbsolutePath()
- Specified by:
getAbsolutePath
in interfaceIDirectoryAccess
-
isRootDirectory
public boolean isRootDirectory()
- Specified by:
isRootDirectory
in interfaceIDirectoryAccess
- Returns:
- true if this is a root directory containing input files for the parsers (e.g. a configured top-level directory in a module)
-
isSourceRootDirectory
public boolean isSourceRootDirectory()
- Specified by:
isSourceRootDirectory
in interfaceIDirectoryAccess
- Returns:
- true if this is a root directory that is searched for input source files when parsing
-
accept
public void accept(INamedElementAccess.INamedElementAccessVisitor visitor)
Internal- Specified by:
accept
in interfaceINamedElementAccess
- Overrides:
accept
in classElementAccess<com.hello2morrow.sonargraph.core.model.path.DirectoryPath>
- Parameters:
visitor
- The visitor implementation
-
-