@Label(value="Method") public interface MethodDescriptor extends MemberDescriptor, AbstractDescriptor
Describes a method of a Java type.
| Modifier and Type | Method and Description |
|---|---|
int |
getCyclomaticComplexity()
Return the cyclomatic complexity of the method.
|
List<TypeDescriptor> |
getDeclaredInnerClasses() |
int |
getEffectiveLineCount()
Return the number of source code lines containing code.
|
Integer |
getFirstLineNumber()
Return the first line number of the method.
|
com.buschmais.jqassistant.plugin.common.api.model.ValueDescriptor<?> |
getHasDefault() |
List<InvokesDescriptor> |
getInvokedBy()
Return all invocations of this method by other methods.
|
List<InvokesDescriptor> |
getInvokes()
Return all invocations this method performs.
|
Integer |
getLastLineNumber()
Return the last line number of the method.
|
List<ParameterDescriptor> |
getParameters()
Return all declared parameters of this method.
|
List<ReadsDescriptor> |
getReads()
Return all read accesses to fields this method performs.
|
TypeDescriptor |
getReturns()
Return the return type of this method.
|
BoundDescriptor |
getReturnsGeneric()
Return the generic return type of this method.
|
List<TypeDescriptor> |
getThrows()
Return all declared throwables of this method.
|
List<BoundDescriptor> |
getThrowsGeneric()
Return all declared generic throwables of this method.
|
List<VariableDescriptor> |
getVariables() |
List<WritesDescriptor> |
getWrites()
Return all write accesses to fields this method performs.
|
Boolean |
isNative()
Return <code>true</code> if this method is native.
|
void |
setCyclomaticComplexity(int cyclomaticComplexity) |
void |
setEffectiveLineCount(int effectiveLineCount) |
void |
setFirstLineNumber(Integer firstLineNumber) |
void |
setHasDefault(com.buschmais.jqassistant.plugin.common.api.model.ValueDescriptor<?> hasDefault) |
void |
setLastLineNumber(Integer lastLineNumber) |
void |
setNative(Boolean nativeMethod) |
void |
setReturns(TypeDescriptor returns) |
void |
setReturnsGeneric(BoundDescriptor returnsGeneric) |
getDeclaringTypegetName, setNamegetSignature, setSignaturegetAnnotatedBygetVisibility, isFinal, isStatic, isSynthetic, setFinal, setStatic, setSynthetic, setVisibilityisAbstract, setAbstract@Relation(value="HAS") List<ParameterDescriptor> getParameters()
Return all declared parameters of this method.
@Relation(value="RETURNS") TypeDescriptor getReturns()
Return the return type of this method.
void setReturns(TypeDescriptor returns)
@Relation(value="RETURNS_GENERIC") BoundDescriptor getReturnsGeneric()
Return the generic return type of this method.
void setReturnsGeneric(BoundDescriptor returnsGeneric)
@Relation(value="HAS_DEFAULT") com.buschmais.jqassistant.plugin.common.api.model.ValueDescriptor<?> getHasDefault()
void setHasDefault(com.buschmais.jqassistant.plugin.common.api.model.ValueDescriptor<?> hasDefault)
@Relation(value="THROWS") List<TypeDescriptor> getThrows()
Return all declared throwables of this method.
@Relation(value="THROWS_GENERIC") List<BoundDescriptor> getThrowsGeneric()
Return all declared generic throwables of this method.
List<ReadsDescriptor> getReads()
Return all read accesses to fields this method performs.
List<WritesDescriptor> getWrites()
Return all write accesses to fields this method performs.
List<InvokesDescriptor> getInvokes()
Return all invocations this method performs.
List<InvokesDescriptor> getInvokedBy()
Return all invocations of this method by other methods.
Boolean isNative()
Return <code>true</code> if this method is native.
void setNative(Boolean nativeMethod)
int getCyclomaticComplexity()
Return the cyclomatic complexity of the method.
void setCyclomaticComplexity(int cyclomaticComplexity)
List<TypeDescriptor> getDeclaredInnerClasses()
List<VariableDescriptor> getVariables()
Integer getFirstLineNumber()
Return the first line number of the method.
void setFirstLineNumber(Integer firstLineNumber)
Integer getLastLineNumber()
Return the last line number of the method.
void setLastLineNumber(Integer lastLineNumber)
int getEffectiveLineCount()
Return the number of source code lines containing code.
void setEffectiveLineCount(int effectiveLineCount)
Copyright © 2016–2021 jQAssistant Development Team. All rights reserved.