Interface MethodDescriptor
- All Superinterfaces:
AbstractDescriptor,AccessModifierDescriptor,AnnotatedDescriptor,ByteCodeDescriptor,com.buschmais.xo.api.CompositeObject,com.buschmais.jqassistant.core.store.api.model.Descriptor,JavaByteCodeDescriptor,JavaDescriptor,MemberDescriptor,com.buschmais.jqassistant.plugin.common.api.model.NamedDescriptor,SignatureDescriptor
- All Known Subinterfaces:
ConstructorDescriptor,LambdaMethodDescriptor
Describes a method of a Java type.
-
Method Summary
Modifier and TypeMethodDescriptionintReturn the cyclomatic complexity of the method.intReturn the number of source code lines containing code.Return the first line number of the method.com.buschmais.jqassistant.plugin.common.api.model.ValueDescriptor<?>Return all invocations of this method by other methods.Return all invocations this method performs.Return the last line number of the method.Return all declared parameters of this method.getReads()Return all read accesses to fields this method performs.Return the return type of this method.Return the generic return type of this method.Return all declared throwables of this method.Return all declared generic throwables of this method.Return all write accesses to fields this method performs.isNative()Returntrueif this method is native.voidsetCyclomaticComplexity(int cyclomaticComplexity) voidsetEffectiveLineCount(int effectiveLineCount) voidsetFirstLineNumber(Integer firstLineNumber) voidsetHasDefault(com.buschmais.jqassistant.plugin.common.api.model.ValueDescriptor<?> hasDefault) voidsetLastLineNumber(Integer lastLineNumber) voidvoidsetReturns(TypeDescriptor returns) voidsetReturnsGeneric(BoundDescriptor returnsGeneric) Methods inherited from interface com.buschmais.jqassistant.plugin.java.api.model.AbstractDescriptor
isAbstract, setAbstractMethods inherited from interface com.buschmais.jqassistant.plugin.java.api.model.AccessModifierDescriptor
getVisibility, isFinal, isStatic, isSynthetic, setFinal, setStatic, setSynthetic, setVisibilityMethods inherited from interface com.buschmais.jqassistant.plugin.java.api.model.AnnotatedDescriptor
getAnnotatedByMethods inherited from interface com.buschmais.xo.api.CompositeObject
as, getDelegate, getIdMethods inherited from interface com.buschmais.jqassistant.plugin.java.api.model.MemberDescriptor
getDeclaringTypeMethods inherited from interface com.buschmais.jqassistant.plugin.common.api.model.NamedDescriptor
getName, setNameMethods inherited from interface com.buschmais.jqassistant.plugin.java.api.model.SignatureDescriptor
getSignature, setSignature
-
Method Details
-
getParameters
Return all declared parameters of this method.- Returns:
- The declared parameters.
-
getReturns
Return the return type of this method.- Returns:
- The return type.
-
setReturns
-
getReturnsGeneric
Return the generic return type of this method.- Returns:
- The generic return type.
-
setReturnsGeneric
-
getHasDefault
@Relation("HAS_DEFAULT") com.buschmais.jqassistant.plugin.common.api.model.ValueDescriptor<?> getHasDefault() -
setHasDefault
void setHasDefault(com.buschmais.jqassistant.plugin.common.api.model.ValueDescriptor<?> hasDefault) -
getThrows
Return all declared throwables of this method.- Returns:
- The declared throwables.
-
getThrowsGeneric
Return all declared generic throwables of this method.- Returns:
- The declared generic throwables.
-
getReads
List<ReadsDescriptor> getReads()Return all read accesses to fields this method performs.- Returns:
- All read accesses to fields this method performs.
-
getWrites
List<WritesDescriptor> getWrites()Return all write accesses to fields this method performs.- Returns:
- All write accesses to fields this method performs.
-
getInvokes
List<InvokesDescriptor> getInvokes()Return all invocations this method performs.- Returns:
- All invocations this method performs.
-
getInvokedBy
List<InvokesDescriptor> getInvokedBy()Return all invocations of this method by other methods.- Returns:
- The invocations of this method by other methods.
-
isNative
Boolean isNative()Returntrueif this method is native.- Returns:
trueif this method is native.
-
setNative
-
getCyclomaticComplexity
int getCyclomaticComplexity()Return the cyclomatic complexity of the method.- Returns:
- The cyclomatic complexity.
-
setCyclomaticComplexity
void setCyclomaticComplexity(int cyclomaticComplexity) -
getDeclaredInnerClasses
List<TypeDescriptor> getDeclaredInnerClasses() -
getVariables
List<VariableDescriptor> getVariables() -
getFirstLineNumber
Integer getFirstLineNumber()Return the first line number of the method.- Returns:
- The first line number of the method.
-
setFirstLineNumber
-
getLastLineNumber
Integer getLastLineNumber()Return the last line number of the method.- Returns:
- The last line number of the method.
-
setLastLineNumber
-
getEffectiveLineCount
int getEffectiveLineCount()Return the number of source code lines containing code.- Returns:
- The number of source code lines containing code.
-
setEffectiveLineCount
void setEffectiveLineCount(int effectiveLineCount)
-