public class BasicElementInfo extends Object implements ElementInfo
| Constructor and Description |
|---|
BasicElementInfo(SourceInfo region,
int relativeDataIndex,
int complexity,
LanguageConstruct construct) |
| Modifier and Type | Method and Description |
|---|---|
int |
getComplexity()
Returns cyclomatic complexity of this code element
|
LanguageConstruct |
getConstruct() |
ContextSet |
getContext() |
int |
getEndColumn() |
int |
getEndLine() |
int |
getHitCount() |
SourceInfo |
getRegion() |
int |
getRelativeDataIndex() |
int |
getStartColumn() |
int |
getStartLine() |
void |
setComplexity(int complexity) |
void |
setConstruct(LanguageConstruct construct) |
void |
setRegion(SourceInfo region) |
String |
toString() |
public BasicElementInfo(SourceInfo region, int relativeDataIndex, int complexity, LanguageConstruct construct)
public SourceInfo getRegion()
public int getRelativeDataIndex()
public int getHitCount()
getHitCount in interface ElementInfopublic ContextSet getContext()
getContext in interface ElementInfopublic int getComplexity()
ElementInfogetComplexity in interface ElementInfopublic int getStartLine()
getStartLine in interface SourceInfopublic int getStartColumn()
getStartColumn in interface SourceInfopublic int getEndLine()
getEndLine in interface SourceInfopublic int getEndColumn()
getEndColumn in interface SourceInfopublic void setComplexity(int complexity)
public void setRegion(SourceInfo region)
public LanguageConstruct getConstruct()
public void setConstruct(LanguageConstruct construct)
Copyright © 2024 OpenClover.org. All rights reserved.