Class DirectoryFragmentAccess
- java.lang.Object
-
- com.hello2morrow.sonargraph.core.api.model.ElementAccess<com.hello2morrow.sonargraph.core.model.path.DirectoryFragment>
-
- com.hello2morrow.sonargraph.core.api.model.DirectoryFragmentAccess
-
- All Implemented Interfaces:
IDirectoryAccess,IElementAccess,INamedElementAccess
public final class DirectoryFragmentAccess extends ElementAccess<com.hello2morrow.sonargraph.core.model.path.DirectoryFragment> implements IDirectoryAccess
-
-
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 DirectoryFragmentAccess(com.hello2morrow.sonargraph.core.model.path.DirectoryFragment element)Internal use only
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaccept(INamedElementAccess.INamedElementAccessVisitor visitor)Internaljava.lang.StringgetAbsolutePath()de.schlichtherle.truezip.file.TFilegetFile()Returns the File object associated with this directoryjava.lang.ObjectgetMetricLevel()Internal use onlybooleanisRootDirectory()booleanisSourceRootDirectory()-
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:ElementAccessInternal use only- Overrides:
getMetricLevelin classElementAccess<com.hello2morrow.sonargraph.core.model.path.DirectoryFragment>
-
getFile
public de.schlichtherle.truezip.file.TFile getFile()
Returns the File object associated with this directory- Specified by:
getFilein interfaceIDirectoryAccess- Returns:
- see above
-
getAbsolutePath
public java.lang.String getAbsolutePath()
- Specified by:
getAbsolutePathin interfaceIDirectoryAccess
-
isRootDirectory
public boolean isRootDirectory()
- Specified by:
isRootDirectoryin 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:
isSourceRootDirectoryin 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:
acceptin interfaceINamedElementAccess- Overrides:
acceptin classElementAccess<com.hello2morrow.sonargraph.core.model.path.DirectoryFragment>- Parameters:
visitor- The visitor implementation
-
-