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
@Label("Method") public interface MethodDescriptor extends MemberDescriptor, AbstractDescriptorDescribes a method of a Java type.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description intgetCyclomaticComplexity()Return the cyclomatic complexity of the method.java.util.List<TypeDescriptor>getDeclaredInnerClasses()intgetEffectiveLineCount()Return the number of source code lines containing code.java.lang.IntegergetFirstLineNumber()Return the first line number of the method.com.buschmais.jqassistant.plugin.common.api.model.ValueDescriptor<?>getHasDefault()java.util.List<InvokesDescriptor>getInvokedBy()Return all invocations of this method by other methods.java.util.List<InvokesDescriptor>getInvokes()Return all invocations this method performs.java.lang.IntegergetLastLineNumber()Return the last line number of the method.java.util.List<ParameterDescriptor>getParameters()Return all declared parameters of this method.java.util.List<ReadsDescriptor>getReads()Return all read accesses to fields this method performs.TypeDescriptorgetReturns()Return the return type of this method.BoundDescriptorgetReturnsGeneric()Return the generic return type of this method.java.util.List<TypeDescriptor>getThrows()Return all declared throwables of this method.java.util.List<BoundDescriptor>getThrowsGeneric()Return all declared generic throwables of this method.java.util.List<VariableDescriptor>getVariables()java.util.List<WritesDescriptor>getWrites()Return all write accesses to fields this method performs.java.lang.BooleanisNative()Returntrueif this method is native.voidsetCyclomaticComplexity(int cyclomaticComplexity)voidsetEffectiveLineCount(int effectiveLineCount)voidsetFirstLineNumber(java.lang.Integer firstLineNumber)voidsetHasDefault(com.buschmais.jqassistant.plugin.common.api.model.ValueDescriptor<?> hasDefault)voidsetLastLineNumber(java.lang.Integer lastLineNumber)voidsetNative(java.lang.Boolean nativeMethod)voidsetReturns(TypeDescriptor returns)voidsetReturnsGeneric(BoundDescriptor returnsGeneric)-
Methods inherited from interface com.buschmais.jqassistant.plugin.java.api.model.AbstractDescriptor
isAbstract, setAbstract
-
Methods inherited from interface com.buschmais.jqassistant.plugin.java.api.model.AccessModifierDescriptor
getVisibility, isFinal, isStatic, isSynthetic, setFinal, setStatic, setSynthetic, setVisibility
-
Methods inherited from interface com.buschmais.jqassistant.plugin.java.api.model.AnnotatedDescriptor
getAnnotatedBy
-
Methods inherited from interface com.buschmais.jqassistant.plugin.java.api.model.MemberDescriptor
getDeclaringType
-
Methods inherited from interface com.buschmais.jqassistant.plugin.common.api.model.NamedDescriptor
getName, setName
-
Methods inherited from interface com.buschmais.jqassistant.plugin.java.api.model.SignatureDescriptor
getSignature, setSignature
-
-
-
-
Method Detail
-
getParameters
@Relation("HAS") java.util.List<ParameterDescriptor> getParameters()Return all declared parameters of this method.- Returns:
- The declared parameters.
-
getReturns
@Relation("RETURNS") TypeDescriptor getReturns()Return the return type of this method.- Returns:
- The return type.
-
setReturns
void setReturns(TypeDescriptor returns)
-
getReturnsGeneric
@Relation("RETURNS_GENERIC") BoundDescriptor getReturnsGeneric()Return the generic return type of this method.- Returns:
- The generic return type.
-
setReturnsGeneric
void setReturnsGeneric(BoundDescriptor returnsGeneric)
-
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
@Relation("THROWS") java.util.List<TypeDescriptor> getThrows()Return all declared throwables of this method.- Returns:
- The declared throwables.
-
getThrowsGeneric
@Relation("THROWS_GENERIC") java.util.List<BoundDescriptor> getThrowsGeneric()Return all declared generic throwables of this method.- Returns:
- The declared generic throwables.
-
getReads
java.util.List<ReadsDescriptor> getReads()
Return all read accesses to fields this method performs.- Returns:
- All read accesses to fields this method performs.
-
getWrites
java.util.List<WritesDescriptor> getWrites()
Return all write accesses to fields this method performs.- Returns:
- All write accesses to fields this method performs.
-
getInvokes
java.util.List<InvokesDescriptor> getInvokes()
Return all invocations this method performs.- Returns:
- All invocations this method performs.
-
getInvokedBy
java.util.List<InvokesDescriptor> getInvokedBy()
Return all invocations of this method by other methods.- Returns:
- The invocations of this method by other methods.
-
isNative
java.lang.Boolean isNative()
Returntrueif this method is native.- Returns:
trueif this method is native.
-
setNative
void setNative(java.lang.Boolean nativeMethod)
-
getCyclomaticComplexity
int getCyclomaticComplexity()
Return the cyclomatic complexity of the method.- Returns:
- The cyclomatic complexity.
-
setCyclomaticComplexity
void setCyclomaticComplexity(int cyclomaticComplexity)
-
getDeclaredInnerClasses
java.util.List<TypeDescriptor> getDeclaredInnerClasses()
-
getVariables
java.util.List<VariableDescriptor> getVariables()
-
getFirstLineNumber
java.lang.Integer getFirstLineNumber()
Return the first line number of the method.- Returns:
- The first line number of the method.
-
setFirstLineNumber
void setFirstLineNumber(java.lang.Integer firstLineNumber)
-
getLastLineNumber
java.lang.Integer getLastLineNumber()
Return the last line number of the method.- Returns:
- The last line number of the method.
-
setLastLineNumber
void setLastLineNumber(java.lang.Integer lastLineNumber)
-
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)
-
-