Class DependencyAccess
- java.lang.Object
-
- com.hello2morrow.sonargraph.core.api.model.ElementAccess<com.hello2morrow.sonargraph.core.model.programming.ParserDependency>
-
- com.hello2morrow.sonargraph.core.api.model.DependencyAccess
-
- All Implemented Interfaces:
IDependencyAccess
,IElementAccess
,INamedElementAccess
public final class DependencyAccess extends ElementAccess<com.hello2morrow.sonargraph.core.model.programming.ParserDependency> implements IDependencyAccess
Dependency representation object describing a dependency between two programming elements.
-
-
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 DependencyAccess(com.hello2morrow.sonargraph.core.model.programming.ParserDependency dependency, ElementAccess.IAccessFactory factory)
Internal use only
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description IDependencyContext
getDependencyContext()
IDependencyKind
getDependencyKind()
IProgrammingElementAccess
getFrom()
Get the origin of the dependency.DependencyContext
getGenericDependencyContext()
Return the generic (core) context of the dependency - might be 'null'.DependencyKind
getGenericDependencyKind()
Return the generic (core) type of the dependency.int
getLineNumber()
IProgrammingElementAccess
getTo()
Get the target of this dependency.boolean
isCompileTimeDependency()
-
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, 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
getIssueCount
-
-
-
-
Constructor Detail
-
DependencyAccess
public DependencyAccess(com.hello2morrow.sonargraph.core.model.programming.ParserDependency dependency, ElementAccess.IAccessFactory factory)
Internal use only
-
-
Method Detail
-
getGenericDependencyKind
public DependencyKind getGenericDependencyKind()
Return the generic (core) type of the dependency.- Specified by:
getGenericDependencyKind
in interfaceIDependencyAccess
-
getGenericDependencyContext
public DependencyContext getGenericDependencyContext()
Return the generic (core) context of the dependency - might be 'null'.
-
getLineNumber
public int getLineNumber()
- Specified by:
getLineNumber
in interfaceIDependencyAccess
- Returns:
- line number of the origin
-
getDependencyKind
public IDependencyKind getDependencyKind()
- Specified by:
getDependencyKind
in interfaceIDependencyAccess
-
getDependencyContext
public IDependencyContext getDependencyContext()
-
isCompileTimeDependency
public boolean isCompileTimeDependency()
- Specified by:
isCompileTimeDependency
in interfaceIDependencyAccess
-
getFrom
public IProgrammingElementAccess getFrom()
Get the origin of the dependency.- Specified by:
getFrom
in interfaceIDependencyAccess
-
getTo
public IProgrammingElementAccess getTo()
Get the target of this dependency.- Specified by:
getTo
in interfaceIDependencyAccess
-
-