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 IDependencyContextgetDependencyContext()IDependencyKindgetDependencyKind()IProgrammingElementAccessgetFrom()Get the origin of the dependency.DependencyContextgetGenericDependencyContext()Return the generic (core) context of the dependency - might be 'null'.DependencyKindgetGenericDependencyKind()Return the generic (core) type of the dependency.intgetLineNumber()IProgrammingElementAccessgetTo()Get the target of this dependency.booleanisCompileTimeDependency()-
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:
getGenericDependencyKindin interfaceIDependencyAccess
-
getGenericDependencyContext
public DependencyContext getGenericDependencyContext()
Return the generic (core) context of the dependency - might be 'null'.
-
getLineNumber
public int getLineNumber()
- Specified by:
getLineNumberin interfaceIDependencyAccess- Returns:
- line number of the origin
-
getDependencyKind
public IDependencyKind getDependencyKind()
- Specified by:
getDependencyKindin interfaceIDependencyAccess
-
getDependencyContext
public IDependencyContext getDependencyContext()
-
isCompileTimeDependency
public boolean isCompileTimeDependency()
- Specified by:
isCompileTimeDependencyin interfaceIDependencyAccess
-
getFrom
public IProgrammingElementAccess getFrom()
Get the origin of the dependency.- Specified by:
getFromin interfaceIDependencyAccess
-
getTo
public IProgrammingElementAccess getTo()
Get the target of this dependency.- Specified by:
getToin interfaceIDependencyAccess
-
-