Package com.hello2morrow.sonargraph.api
Interface IPluginLanguageBasedAccess
- All Superinterfaces:
IBaseCoreAccess
,IElementAccess
,INamedElementAccess
,IPluginCoreAccess
Root access object representing a software system
-
Nested Class Summary
Nested classes/interfaces inherited from interface com.hello2morrow.sonargraph.api.INamedElementAccess
INamedElementAccess.INamedElementAccessVisitor
-
Method Summary
Modifier and TypeMethodDescriptionaddDependencyTo
(IProgrammingElementAccess from, IProgrammingElementAccess to, IParserDependencyType depType) Create a dependency between two programming elements.createProgrammingElement
(INamedElementAccess parent, IMetaClass metaClass, String name, int line) Create a new generic programming element.createProgrammingElementComponent
(INamedElementAccess parent, IMetaClass metaClass, String name, int line) Create a new generic programming element that also is a component.Methods inherited from interface com.hello2morrow.sonargraph.api.IBaseCoreAccess
findAllMatchingElements, findAllMatchingElementsRecursively, findAllMatchingFields, findAllMatchingMethods, findAllMatchingRoutines, findAllMatchingTypes, findElementByFqn, findFirstMatchingElement, findFirstMatchingElementRecursively, findFirstMatchingField, findFirstMatchingMethod, findFirstMatchingRoutine, findFirstMatchingType, getBaseDirectory, getBaseDirectoryPath, getComponents, getComponents, getExternalRoot, getModules, getName, getWorkspaceRoot, visitLogicalModuleNamespaces, visitLogicalSystemNamespaces, visitParserModel
Methods inherited from interface com.hello2morrow.sonargraph.api.IElementAccess
getNameWithSignature, getShortName, getShortNameWithSignature, ignoreIssues, isExcluded, isExternal
Methods inherited from interface com.hello2morrow.sonargraph.api.INamedElementAccess
accept, getChildren, getFullyQualifiedName, getIncomingDependenciesRecursively, getIncomingDependenciesRecursively, getIssueCount, getIssueCount, getIssueCount, getIssueCount, getIssueCount, getIssues, getIssues, getIssues, getOutgoingDependenciesRecursively, getOutgoingDependenciesRecursively, getOutgoingDependenciesRecursively, getParent, getParent, getReferencedElementsRecursively, getReferencedElementsRecursively, getReferencedElementsRecursively, getReferencingElementsRecursively, getReferencingElementsRecursively
Methods inherited from interface com.hello2morrow.sonargraph.api.IPluginCoreAccess
addIssue, getACDMetric, getBiggestComponentCycleGroupMetric, getBiggestModuleACDMetric, getCCDMetric, getCodeCommentLinesMetric, getCommentLinesMetric, getComponentCyclicityMetric, getComponentDependenciesToRemoveMetric, getComponentParserDependenciesToRemoveMetric, getComponentRelativeCyclicityMetric, getComponentStructuralDebtIndexMetric, getExternalRoot, getHiddenDataDirectory, getLinesOfCodeMetric, getNCCDMetric, getNumberOfCodeDuplicatesMetric, getNumberOfComponentCycleGroupsMetric, getNumberOfComponentsMetric, getNumberOfComponentViolationsMetric, getNumberOfCyclicComponentsMetric, getNumberOfDuplicatedLinesMetric, getNumberOfIgnoredCodeDuplicatesMetric, getNumberOfIgnoredCyclicComponentsMetric, getNumberOfIgnoredParserDependencyViolationsMetric, getNumberOfParserDependencyViolationsMetric, getNumberOfStatementsMetric, getNumberOfUnassignedComponentsMetric, getNumberOfViolatingComponentsMetric, getPropagationCostMetric, getSourceElementCountMetric, getTotalLinesMetric
-
Method Details
-
getLanguageIdentifier
String getLanguageIdentifier() -
createProgrammingElement
IGenericProgrammingElementAccess createProgrammingElement(INamedElementAccess parent, IMetaClass metaClass, String name, int line) Create a new generic programming element.- Parameters:
parent
- The parent elementmetaClass
- Meta classname
- Element nameline
- Line number or -1 if unknown- Returns:
- An access object for the new element.
-
createProgrammingElementComponent
IGenericProgrammingElementAccess createProgrammingElementComponent(INamedElementAccess parent, IMetaClass metaClass, String name, int line) Create a new generic programming element that also is a component.- Parameters:
parent
- The parent elementmetaClass
- Meta classname
- Element nameline
- Line number or -1 if unknown- Returns:
- An access object for the new element.
-
addDependencyTo
IDependencyAccess addDependencyTo(IProgrammingElementAccess from, IProgrammingElementAccess to, IParserDependencyType depType) Create a dependency between two programming elements.- Parameters:
from
- The origin of the dependencyto
- The target of the dependencydepType
- The dependency type
-