public interface ClassInfo extends SourceInfo, EntityContainer, HasClasses, HasMethods, HasStatements, HasContextFilter, HasMetrics, HasAggregatedMetrics, HasParent
Modifier and Type | Method and Description |
---|---|
java.util.List<? extends ClassInfo> |
getClasses()
Returns list of inner classes declared on the top level of the class.
|
ClassInfo |
getContainingClass()
Returns a class in which this class is declared (case for inner classes) or
null otherwise. |
FileInfo |
getContainingFile()
Returns a file in which this class is declared.
|
MethodInfo |
getContainingMethod()
Returns a method in which this class (an anonymous inline class for instance) is declared or
null
otherwise. |
java.util.List<? extends MethodInfo> |
getMethods()
Returns list of methods declared on the top level of the class.
|
ModifiersInfo |
getModifiers() |
java.lang.String |
getName() |
PackageInfo |
getPackage() |
java.lang.String |
getQualifiedName() |
java.util.List<? extends StatementInfo> |
getStatements()
Returns list of statements declared on the to level of the class, i.e.
|
boolean |
isEmpty()
Returns true if this class does not contain any nested entities (method or inner classes)
|
boolean |
isTestClass() |
getEndColumn, getEndLine, getStartColumn, getStartLine
visit
getAllClasses
getAllMethods
getContextFilter
getMetrics, getRawMetrics, setMetrics
getAggregatedComplexity, getAggregatedStatementCount, setAggregatedComplexity, setAggregatedStatementCount
java.lang.String getName()
getName
in interface HasMetrics
java.lang.String getQualifiedName()
ModifiersInfo getModifiers()
@Nullable ClassInfo getContainingClass()
null
otherwise.null
@Nullable MethodInfo getContainingMethod()
null
otherwise.null
@Nullable FileInfo getContainingFile()
boolean isTestClass()
@NotNull java.util.List<? extends ClassInfo> getClasses()
getClasses
in interface HasClasses
@NotNull java.util.List<? extends MethodInfo> getMethods()
getMethods
in interface HasMethods
@NotNull java.util.List<? extends StatementInfo> getStatements()
getStatements
in interface HasStatements
boolean isEmpty()
PackageInfo getPackage()