public abstract class FullElementInfo<T extends BasicElementInfo> extends Object implements CoverageDataReceptor, FileInfoRegion, ElementInfo
| Modifier and Type | Field and Description |
|---|---|
protected ContextSet |
context |
protected T |
sharedInfo |
| Modifier | Constructor and Description |
|---|---|
protected |
FullElementInfo(ContextSet context,
T sharedInfo) |
| Modifier and Type | Method and Description |
|---|---|
void |
addContext(NamedContext ctx) |
int |
getComplexity()
Returns cyclomatic complexity of this code element
|
LanguageConstruct |
getConstruct() |
ContextSet |
getContext() |
int |
getDataIndex() |
int |
getEndColumn() |
int |
getEndLine() |
int |
getHitCount() |
int |
getRelativeDataIndex() |
int |
getStartColumn() |
int |
getStartLine() |
boolean |
isFiltered(ContextSet filter) |
void |
setComplexity(int complexity) |
void |
setContext(ContextSet context) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetDataProvider, setDataProvidergetDataLengthgetContainingFileprotected final T extends BasicElementInfo sharedInfo
protected ContextSet context
protected FullElementInfo(ContextSet context, T sharedInfo)
public ContextSet getContext()
getContext in interface ElementInfopublic void setContext(ContextSet context)
public boolean isFiltered(ContextSet filter)
filter - the ContextSet whereby Contexts to be filtered out are set to 1,
and preserved contexts are 0.true if this element info is filtered out. i.e. excludedContextStorepublic void addContext(NamedContext ctx)
public int getComplexity()
ElementInfogetComplexity in interface ElementInfopublic void setComplexity(int complexity)
public int getHitCount()
getHitCount in interface ElementInfopublic int getRelativeDataIndex()
public int getDataIndex()
getDataIndex in interface CoverageDataRangepublic int getStartLine()
getStartLine in interface SourceInfopublic int getStartColumn()
getStartColumn in interface SourceInfopublic int getEndLine()
getEndLine in interface SourceInfopublic int getEndColumn()
getEndColumn in interface SourceInfo@NotNull public LanguageConstruct getConstruct()
Copyright © 2024 OpenClover.org. All rights reserved.