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, AbstractDescriptor
Describes a method of a Java type.
  • Method Details

    • getParameters

      @Relation("HAS") 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") List<TypeDescriptor> getThrows()
      Return all declared throwables of this method.
      Returns:
      The declared throwables.
    • getThrowsGeneric

      @Relation("THROWS_GENERIC") List<BoundDescriptor> 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()
      Return true if this method is native.
      Returns:
      true if this method is native.
    • setNative

      void setNative(Boolean nativeMethod)
    • 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

      void setFirstLineNumber(Integer firstLineNumber)
    • getLastLineNumber

      Integer getLastLineNumber()
      Return the last line number of the method.
      Returns:
      The last line number of the method.
    • setLastLineNumber

      void setLastLineNumber(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)