|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface MethodInfo
Represents a method (or an equivalent, like function) Implements interfaces:
Method Summary | |
---|---|
ClassInfo |
getContainingClass()
Returns a class in which method is declared or null if method (actually it will be a function
or procedure) is declared outside the class. |
FileInfo |
getContainingFile()
Returns a file in which this method is declared. |
MethodInfo |
getContainingMethod()
Returns a method in which this method (an inner function actually) is declared or null if method
is not nested inside other method. |
java.lang.String |
getName()
|
EntityContainer |
getParent()
Returns an object which encloses this method. |
java.lang.String |
getQualifiedName()
|
MethodSignatureInfo |
getSignature()
Returns method signature (annotations, keywords, type parameters, method name, parameters, return type, throws). |
java.lang.String |
getSimpleName()
|
java.lang.String |
getStaticTestName()
Name of the test associated with a method. |
boolean |
isEmpty()
Returns whether method is empty, i.e. does not contain any executable code in it - no statements or branches. |
boolean |
isLambda()
Returns whether it's a lambda function or not. |
boolean |
isTest()
Returns whether it's a test method or not. |
Methods inherited from interface com.atlassian.clover.api.registry.ElementInfo |
---|
getComplexity, getContext, getHitCount |
Methods inherited from interface com.atlassian.clover.api.registry.SourceInfo |
---|
getEndColumn, getEndLine, getStartColumn, getStartLine |
Methods inherited from interface com.atlassian.clover.api.registry.InstrumentationInfo |
---|
getDataIndex, getDataLength |
Methods inherited from interface com.atlassian.clover.api.registry.EntityContainer |
---|
visit |
Methods inherited from interface com.atlassian.clover.api.registry.HasBranches |
---|
getBranches |
Methods inherited from interface com.atlassian.clover.api.registry.HasClasses |
---|
getAllClasses, getClasses |
Methods inherited from interface com.atlassian.clover.api.registry.HasMethods |
---|
getAllMethods, getMethods |
Methods inherited from interface com.atlassian.clover.api.registry.HasStatements |
---|
getStatements |
Methods inherited from interface com.atlassian.clover.api.registry.HasContextFilter |
---|
getContextFilter |
Methods inherited from interface com.atlassian.clover.api.registry.HasMetrics |
---|
getMetrics, getRawMetrics, setMetrics |
Methods inherited from interface com.atlassian.clover.api.registry.HasAggregatedMetrics |
---|
getAggregatedComplexity, getAggregatedStatementCount, setAggregatedComplexity, setAggregatedStatementCount |
Method Detail |
---|
java.lang.String getName()
getName
in interface HasMetrics
java.lang.String getSimpleName()
java.lang.String getQualifiedName()
@Nullable ClassInfo getContainingClass()
null
if method (actually it will be a function
or procedure) is declared outside the class.
null
@Nullable MethodInfo getContainingMethod()
null
if method
is not nested inside other method.
null
@Nullable FileInfo getContainingFile()
@NotNull EntityContainer getParent()
EntityVisitor.visitClass(ClassInfo)
- for a method declared inside a classEntityVisitor.visitMethod(MethodInfo)
- for a method declared inside another methodEntityVisitor.visitFile(FileInfo)
- for a method declared in the file (on a top-level)
getParent
in interface HasParent
boolean isEmpty()
@NotNull MethodSignatureInfo getSignature()
boolean isTest()
@Nullable java.lang.String getStaticTestName()
null
if not declaredboolean isLambda()
true
for lambda function, false otherwise
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |