Class Method
java.lang.Object
org.moosetechnology.model.famix.moose.Object
org.moosetechnology.model.famix.moose.Entity
org.moosetechnology.model.famix.famixjavaentities.Entity
org.moosetechnology.model.famix.famixjavaentities.SourcedEntity
org.moosetechnology.model.famix.famixjavaentities.NamedEntity
org.moosetechnology.model.famix.famixjavaentities.ContainerEntity
org.moosetechnology.model.famix.famixjavaentities.Method
- All Implemented Interfaces:
TCanBeSynchronized, TWithInterfaces, TCanBeAbstract, TCanBeClassSide, TCanBeFinal, TCanBeStub, THasKind, THasSignature, THasVisibility, TImportable, TInvocable, TMethod, TMethodMetrics, TNamedEntity, TSourceEntity, TTypedEntity, TWithAccesses, TWithAnnotationInstances, TWithAnnotationTypes, TWithClasses, TWithComments, TWithExceptions, TWithImplicitVariables, TWithInvocations, TWithLocalVariables, TWithParameters, TWithReferences, TWithStatements, TWithTypes, TEntityMetaLevelDependency
- Direct Known Subclasses:
Initializer, ParametricMethod
public class Method
extends ContainerEntity
implements TCanBeAbstract, TCanBeClassSide, TCanBeFinal, TCanBeSynchronized, THasKind, THasVisibility, TImportable, TMethod, TWithComments, TWithExceptions
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddAccesses(Iterable<? extends TAccess> many) voidaddAccesses(TAccess one) voidaddAccesses(TAccess[] many) voidaddAccesses(TAccess one, TAccess... many) voidaddCaughtExceptions(Iterable<? extends TThrowable> many) voidvoidaddCaughtExceptions(TThrowable[] many) voidaddCaughtExceptions(TThrowable one, TThrowable... many) voidaddComments(Iterable<? extends TComment> many) voidaddComments(TComment one) voidaddComments(TComment[] many) voidaddComments(TComment one, TComment... many) voidaddDeclaredExceptions(Iterable<? extends TThrowable> many) voidvoidaddDeclaredExceptions(TThrowable[] many) voidaddDeclaredExceptions(TThrowable one, TThrowable... many) voidaddImplicitVariables(Iterable<? extends TImplicitVariable> many) voidvoidvoidaddImplicitVariables(TImplicitVariable one, TImplicitVariable... many) voidaddIncomingImports(Iterable<? extends TImport> many) voidvoidaddIncomingImports(TImport[] many) voidaddIncomingImports(TImport one, TImport... many) voidaddIncomingInvocations(Iterable<? extends TInvocation> many) voidvoidaddIncomingInvocations(TInvocation[] many) voidaddIncomingInvocations(TInvocation one, TInvocation... many) voidaddLocalVariables(Iterable<? extends TLocalVariable> many) voidvoidaddLocalVariables(TLocalVariable[] many) voidaddLocalVariables(TLocalVariable one, TLocalVariable... many) voidaddOutgoingInvocations(Iterable<? extends TInvocation> many) voidvoidaddOutgoingInvocations(TInvocation[] many) voidaddOutgoingInvocations(TInvocation one, TInvocation... many) voidaddOutgoingReferences(Iterable<? extends TReference> many) voidvoidaddOutgoingReferences(TReference[] many) voidaddOutgoingReferences(TReference one, TReference... many) voidaddParameters(Iterable<? extends TParameter> many) voidaddParameters(TParameter one) voidaddParameters(TParameter[] many) voidaddParameters(TParameter one, TParameter... many) voidaddThrownExceptions(Iterable<? extends TThrowable> many) voidvoidaddThrownExceptions(TThrowable[] many) voidaddThrownExceptions(TThrowable one, TThrowable... many) getFanIn()getKind()getName()booleanbooleanbooleanbooleanbooleanbooleanbooleanbooleanbooleanbooleanbooleanbooleanintintintintintintintintintintintintvoidsetAccesses(Collection<? extends TAccess> accesses) voidsetCaughtExceptions(Collection<? extends TThrowable> caughtExceptions) voidsetComments(Collection<? extends TComment> comments) voidsetCyclomaticComplexity(Number cyclomaticComplexity) voidsetDeclaredExceptions(Collection<? extends TThrowable> declaredExceptions) voidsetImplicitVariables(Collection<? extends TImplicitVariable> implicitVariables) voidsetIncomingImports(Collection<? extends TImport> incomingImports) voidsetIncomingInvocations(Collection<? extends TInvocation> incomingInvocations) voidsetIsAbstract(Boolean isAbstract) voidsetIsClassSide(Boolean isClassSide) voidsetIsDead(boolean b) voidsetIsFinal(Boolean isFinal) voidvoidsetIsSynchronized(Boolean isSynchronized) voidvoidsetLocalVariables(Collection<? extends TLocalVariable> localVariables) voidvoidsetNumberOfConditionals(Number numberOfConditionals) voidsetNumberOfLinesOfCode(Number numberOfLinesOfCode) voidsetNumberOfStatements(Number number) voidsetOutgoingInvocations(Collection<? extends TInvocation> outgoingInvocations) voidsetOutgoingReferences(Collection<? extends TReference> outgoingReferences) voidsetParameters(Collection<? extends TParameter> parameters) voidsetParentType(TWithMethods parentType) voidsetSignature(String signature) voidsetSourceAnchor(TSourceAnchor sourceAnchor) voidsetThrownExceptions(Collection<? extends TThrowable> thrownExceptions) voidsetTyping(TEntityTyping typing) voidsetVisibility(String visibility) Methods inherited from class ContainerEntity
addDefinedAnnotationTypes, addDefinedAnnotationTypes, addDefinedAnnotationTypes, addDefinedAnnotationTypes, addTypes, addTypes, addTypes, addTypes, getDefinedAnnotationTypes, getNumberOfClasses, getTypes, hasDefinedAnnotationTypes, hasTypes, numberOfDefinedAnnotationTypes, numberOfTypes, setDefinedAnnotationTypes, setTypesMethods inherited from class NamedEntity
addAnnotationInstances, addAnnotationInstances, addAnnotationInstances, addAnnotationInstances, getAnnotationInstances, hasAnnotationInstances, numberOfAnnotationInstances, setAnnotationInstancesMethods inherited from class SourcedEntity
getNumberOfJavaNullChecks
-
Constructor Details
-
Method
public Method()
-
-
Method Details
-
getClientBehaviours
-
getInvokedMethods
-
getInvokingMethods
-
getIsInitializer
-
getIsImplementing
-
getIsJUnit4Test
-
getIsOverridden
-
getIsOverriding
-
getNumberOfAccesses
-
getNumberOfConditionals
-
setNumberOfConditionals
-
getNumberOfInvokedMethods
-
getProviderBehaviours
-
getAccesses
- Specified by:
getAccessesin interfaceTWithAccesses
-
setAccesses
- Specified by:
setAccessesin interfaceTWithAccesses
-
addAccesses
- Specified by:
addAccessesin interfaceTWithAccesses
-
addAccesses
- Specified by:
addAccessesin interfaceTWithAccesses
-
addAccesses
- Specified by:
addAccessesin interfaceTWithAccesses
-
addAccesses
- Specified by:
addAccessesin interfaceTWithAccesses
-
numberOfAccesses
public int numberOfAccesses()- Specified by:
numberOfAccessesin interfaceTWithAccesses
-
hasAccesses
public boolean hasAccesses()- Specified by:
hasAccessesin interfaceTWithAccesses
-
getCaughtExceptions
- Specified by:
getCaughtExceptionsin interfaceTWithExceptions
-
setCaughtExceptions
- Specified by:
setCaughtExceptionsin interfaceTWithExceptions
-
addCaughtExceptions
- Specified by:
addCaughtExceptionsin interfaceTWithExceptions
-
addCaughtExceptions
- Specified by:
addCaughtExceptionsin interfaceTWithExceptions
-
addCaughtExceptions
- Specified by:
addCaughtExceptionsin interfaceTWithExceptions
-
addCaughtExceptions
- Specified by:
addCaughtExceptionsin interfaceTWithExceptions
-
numberOfCaughtExceptions
public int numberOfCaughtExceptions()- Specified by:
numberOfCaughtExceptionsin interfaceTWithExceptions
-
hasCaughtExceptions
public boolean hasCaughtExceptions()- Specified by:
hasCaughtExceptionsin interfaceTWithExceptions
-
getComments
- Specified by:
getCommentsin interfaceTWithComments
-
setComments
- Specified by:
setCommentsin interfaceTWithComments
-
addComments
- Specified by:
addCommentsin interfaceTWithComments
-
addComments
- Specified by:
addCommentsin interfaceTWithComments
-
addComments
- Specified by:
addCommentsin interfaceTWithComments
-
addComments
- Specified by:
addCommentsin interfaceTWithComments
-
numberOfComments
public int numberOfComments()- Specified by:
numberOfCommentsin interfaceTWithComments
-
hasComments
public boolean hasComments()- Specified by:
hasCommentsin interfaceTWithComments
-
getCyclomaticComplexity
- Specified by:
getCyclomaticComplexityin interfaceTMethodMetrics
-
setCyclomaticComplexity
- Specified by:
setCyclomaticComplexityin interfaceTMethodMetrics
-
getDeclaredExceptions
- Specified by:
getDeclaredExceptionsin interfaceTWithExceptions
-
setDeclaredExceptions
- Specified by:
setDeclaredExceptionsin interfaceTWithExceptions
-
addDeclaredExceptions
- Specified by:
addDeclaredExceptionsin interfaceTWithExceptions
-
addDeclaredExceptions
- Specified by:
addDeclaredExceptionsin interfaceTWithExceptions
-
addDeclaredExceptions
- Specified by:
addDeclaredExceptionsin interfaceTWithExceptions
-
addDeclaredExceptions
- Specified by:
addDeclaredExceptionsin interfaceTWithExceptions
-
numberOfDeclaredExceptions
public int numberOfDeclaredExceptions()- Specified by:
numberOfDeclaredExceptionsin interfaceTWithExceptions
-
hasDeclaredExceptions
public boolean hasDeclaredExceptions()- Specified by:
hasDeclaredExceptionsin interfaceTWithExceptions
-
getFanIn
- Specified by:
getFanInin interfaceTEntityMetaLevelDependency- Overrides:
getFanInin classNamedEntity
-
getFanOut
- Specified by:
getFanOutin interfaceTEntityMetaLevelDependency- Overrides:
getFanOutin classNamedEntity
-
getHasComments
- Specified by:
getHasCommentsin interfaceTWithComments
-
getHierarchyNestingLevel
- Specified by:
getHierarchyNestingLevelin interfaceTMethodMetrics
-
getImplicitVariables
- Specified by:
getImplicitVariablesin interfaceTWithImplicitVariables
-
setImplicitVariables
- Specified by:
setImplicitVariablesin interfaceTWithImplicitVariables
-
addImplicitVariables
- Specified by:
addImplicitVariablesin interfaceTWithImplicitVariables
-
addImplicitVariables
- Specified by:
addImplicitVariablesin interfaceTWithImplicitVariables
-
addImplicitVariables
- Specified by:
addImplicitVariablesin interfaceTWithImplicitVariables
-
addImplicitVariables
- Specified by:
addImplicitVariablesin interfaceTWithImplicitVariables
-
numberOfImplicitVariables
public int numberOfImplicitVariables()- Specified by:
numberOfImplicitVariablesin interfaceTWithImplicitVariables
-
hasImplicitVariables
public boolean hasImplicitVariables()- Specified by:
hasImplicitVariablesin interfaceTWithImplicitVariables
-
getIncomingImports
- Specified by:
getIncomingImportsin interfaceTImportable
-
setIncomingImports
- Specified by:
setIncomingImportsin interfaceTImportable
-
addIncomingImports
- Specified by:
addIncomingImportsin interfaceTImportable
-
addIncomingImports
- Specified by:
addIncomingImportsin interfaceTImportable
-
addIncomingImports
- Specified by:
addIncomingImportsin interfaceTImportable
-
addIncomingImports
- Specified by:
addIncomingImportsin interfaceTImportable
-
numberOfIncomingImports
public int numberOfIncomingImports()- Specified by:
numberOfIncomingImportsin interfaceTImportable
-
hasIncomingImports
public boolean hasIncomingImports()- Specified by:
hasIncomingImportsin interfaceTImportable
-
getIncomingInvocations
- Specified by:
getIncomingInvocationsin interfaceTInvocable
-
setIncomingInvocations
- Specified by:
setIncomingInvocationsin interfaceTInvocable
-
addIncomingInvocations
- Specified by:
addIncomingInvocationsin interfaceTInvocable
-
addIncomingInvocations
- Specified by:
addIncomingInvocationsin interfaceTInvocable
-
addIncomingInvocations
- Specified by:
addIncomingInvocationsin interfaceTInvocable
-
addIncomingInvocations
- Specified by:
addIncomingInvocationsin interfaceTInvocable
-
numberOfIncomingInvocations
public int numberOfIncomingInvocations()- Specified by:
numberOfIncomingInvocationsin interfaceTInvocable
-
hasIncomingInvocations
public boolean hasIncomingInvocations()- Specified by:
hasIncomingInvocationsin interfaceTInvocable
-
getIsAbstract
- Specified by:
getIsAbstractin interfaceTCanBeAbstract
-
setIsAbstract
- Specified by:
setIsAbstractin interfaceTCanBeAbstract
-
getIsClassSide
- Specified by:
getIsClassSidein interfaceTCanBeClassSide
-
setIsClassSide
- Specified by:
setIsClassSidein interfaceTCanBeClassSide
-
getIsConstant
- Specified by:
getIsConstantin interfaceTHasKind
-
getIsConstructor
-
getIsDead
- Specified by:
getIsDeadin interfaceTEntityMetaLevelDependency- Overrides:
getIsDeadin classNamedEntity
-
setIsDead
public void setIsDead(boolean b) -
getIsFinal
- Specified by:
getIsFinalin interfaceTCanBeFinal
-
setIsFinal
- Specified by:
setIsFinalin interfaceTCanBeFinal
-
getIsGetter
- Specified by:
getIsGetterin interfaceTHasKind
-
getIsPackageVisibility
- Specified by:
getIsPackageVisibilityin interfaceTHasVisibility
-
getIsPrivate
- Specified by:
getIsPrivatein interfaceTHasVisibility
-
getIsProtected
- Specified by:
getIsProtectedin interfaceTHasVisibility
-
getIsPublic
- Specified by:
getIsPublicin interfaceTHasVisibility
-
getIsDefault
-
getIsRoot
- Specified by:
getIsRootin interfaceTEntityMetaLevelDependency- Overrides:
getIsRootin classNamedEntity
-
getIsSetter
- Specified by:
getIsSetterin interfaceTHasKind
-
getIsStub
- Specified by:
getIsStubin interfaceTCanBeStub
-
setIsStub
- Specified by:
setIsStubin interfaceTCanBeStub
-
getIsSynchronized
- Specified by:
getIsSynchronizedin interfaceTCanBeSynchronized
-
setIsSynchronized
- Specified by:
setIsSynchronizedin interfaceTCanBeSynchronized
-
getKind
-
setKind
-
getLocalVariables
- Specified by:
getLocalVariablesin interfaceTWithLocalVariables
-
setLocalVariables
- Specified by:
setLocalVariablesin interfaceTWithLocalVariables
-
addLocalVariables
- Specified by:
addLocalVariablesin interfaceTWithLocalVariables
-
addLocalVariables
- Specified by:
addLocalVariablesin interfaceTWithLocalVariables
-
addLocalVariables
- Specified by:
addLocalVariablesin interfaceTWithLocalVariables
-
addLocalVariables
- Specified by:
addLocalVariablesin interfaceTWithLocalVariables
-
numberOfLocalVariables
public int numberOfLocalVariables()- Specified by:
numberOfLocalVariablesin interfaceTWithLocalVariables
-
hasLocalVariables
public boolean hasLocalVariables()- Specified by:
hasLocalVariablesin interfaceTWithLocalVariables
-
getName
- Specified by:
getNamein interfaceTNamedEntity- Overrides:
getNamein classNamedEntity
-
setName
- Specified by:
setNamein interfaceTNamedEntity- Overrides:
setNamein classNamedEntity
-
getNumberOfAnnotationInstances
- Specified by:
getNumberOfAnnotationInstancesin interfaceTMethodMetrics- Specified by:
getNumberOfAnnotationInstancesin interfaceTWithAnnotationInstances- Overrides:
getNumberOfAnnotationInstancesin classNamedEntity
-
getNumberOfContainedEntities
- Specified by:
getNumberOfContainedEntitiesin interfaceTEntityMetaLevelDependency- Overrides:
getNumberOfContainedEntitiesin classNamedEntity
-
getNumberOfComments
- Specified by:
getNumberOfCommentsin interfaceTWithComments
-
getNumberOfDeadChildren
- Specified by:
getNumberOfDeadChildrenin interfaceTEntityMetaLevelDependency- Overrides:
getNumberOfDeadChildrenin classNamedEntity
-
getNumberOfExternalClients
- Specified by:
getNumberOfExternalClientsin interfaceTEntityMetaLevelDependency- Overrides:
getNumberOfExternalClientsin classNamedEntity
-
getNumberOfExternalProviders
- Specified by:
getNumberOfExternalProvidersin interfaceTEntityMetaLevelDependency- Overrides:
getNumberOfExternalProvidersin classNamedEntity
-
getNumberOfInternalClients
- Specified by:
getNumberOfInternalClientsin interfaceTEntityMetaLevelDependency- Overrides:
getNumberOfInternalClientsin classNamedEntity
-
getNumberOfInternalProviders
- Specified by:
getNumberOfInternalProvidersin interfaceTEntityMetaLevelDependency- Overrides:
getNumberOfInternalProvidersin classNamedEntity
-
getNumberOfLinesOfCode
- Specified by:
getNumberOfLinesOfCodein interfaceTSourceEntity- Overrides:
getNumberOfLinesOfCodein classSourcedEntity
-
setNumberOfLinesOfCode
- Specified by:
setNumberOfLinesOfCodein interfaceTSourceEntity- Overrides:
setNumberOfLinesOfCodein classSourcedEntity
-
getNumberOfLinesOfCodeWithMoreThanOneCharacter
- Specified by:
getNumberOfLinesOfCodeWithMoreThanOneCharacterin interfaceTSourceEntity- Overrides:
getNumberOfLinesOfCodeWithMoreThanOneCharacterin classSourcedEntity
-
getNumberOfOutgoingInvocations
- Specified by:
getNumberOfOutgoingInvocationsin interfaceTWithInvocations
-
getNumberOfParameters
- Specified by:
getNumberOfParametersin interfaceTWithParameters
-
getNumberOfStatements
- Specified by:
getNumberOfStatementsin interfaceTWithStatements
-
setNumberOfStatements
-
getOutgoingInvocations
- Specified by:
getOutgoingInvocationsin interfaceTWithInvocations
-
setOutgoingInvocations
- Specified by:
setOutgoingInvocationsin interfaceTWithInvocations
-
addOutgoingInvocations
- Specified by:
addOutgoingInvocationsin interfaceTWithInvocations
-
addOutgoingInvocations
- Specified by:
addOutgoingInvocationsin interfaceTWithInvocations
-
addOutgoingInvocations
- Specified by:
addOutgoingInvocationsin interfaceTWithInvocations
-
addOutgoingInvocations
- Specified by:
addOutgoingInvocationsin interfaceTWithInvocations
-
numberOfOutgoingInvocations
public int numberOfOutgoingInvocations()- Specified by:
numberOfOutgoingInvocationsin interfaceTWithInvocations
-
hasOutgoingInvocations
public boolean hasOutgoingInvocations()- Specified by:
hasOutgoingInvocationsin interfaceTWithInvocations
-
getOutgoingReferences
- Specified by:
getOutgoingReferencesin interfaceTWithReferences
-
setOutgoingReferences
- Specified by:
setOutgoingReferencesin interfaceTWithReferences
-
addOutgoingReferences
- Specified by:
addOutgoingReferencesin interfaceTWithReferences
-
addOutgoingReferences
- Specified by:
addOutgoingReferencesin interfaceTWithReferences
-
addOutgoingReferences
- Specified by:
addOutgoingReferencesin interfaceTWithReferences
-
addOutgoingReferences
- Specified by:
addOutgoingReferencesin interfaceTWithReferences
-
numberOfOutgoingReferences
public int numberOfOutgoingReferences()- Specified by:
numberOfOutgoingReferencesin interfaceTWithReferences
-
hasOutgoingReferences
public boolean hasOutgoingReferences()- Specified by:
hasOutgoingReferencesin interfaceTWithReferences
-
getParameters
- Specified by:
getParametersin interfaceTWithParameters
-
setParameters
- Specified by:
setParametersin interfaceTWithParameters
-
addParameters
- Specified by:
addParametersin interfaceTWithParameters
-
addParameters
- Specified by:
addParametersin interfaceTWithParameters
-
addParameters
- Specified by:
addParametersin interfaceTWithParameters
-
addParameters
- Specified by:
addParametersin interfaceTWithParameters
-
numberOfParameters
public int numberOfParameters()- Specified by:
numberOfParametersin interfaceTWithParameters
-
hasParameters
public boolean hasParameters()- Specified by:
hasParametersin interfaceTWithParameters
-
getParentType
- Specified by:
getParentTypein interfaceTMethod
-
setParentType
- Specified by:
setParentTypein interfaceTMethod
-
getSignature
- Specified by:
getSignaturein interfaceTHasSignature
-
setSignature
- Specified by:
setSignaturein interfaceTHasSignature
-
getSourceAnchor
- Specified by:
getSourceAnchorin interfaceTSourceEntity- Overrides:
getSourceAnchorin classSourcedEntity
-
setSourceAnchor
- Specified by:
setSourceAnchorin interfaceTSourceEntity- Overrides:
setSourceAnchorin classSourcedEntity
-
getSourceText
- Specified by:
getSourceTextin interfaceTSourceEntity- Overrides:
getSourceTextin classSourcedEntity
-
getThrownExceptions
- Specified by:
getThrownExceptionsin interfaceTWithExceptions
-
setThrownExceptions
- Specified by:
setThrownExceptionsin interfaceTWithExceptions
-
addThrownExceptions
- Specified by:
addThrownExceptionsin interfaceTWithExceptions
-
addThrownExceptions
- Specified by:
addThrownExceptionsin interfaceTWithExceptions
-
addThrownExceptions
- Specified by:
addThrownExceptionsin interfaceTWithExceptions
-
addThrownExceptions
- Specified by:
addThrownExceptionsin interfaceTWithExceptions
-
numberOfThrownExceptions
public int numberOfThrownExceptions()- Specified by:
numberOfThrownExceptionsin interfaceTWithExceptions
-
hasThrownExceptions
public boolean hasThrownExceptions()- Specified by:
hasThrownExceptionsin interfaceTWithExceptions
-
getTyping
- Specified by:
getTypingin interfaceTTypedEntity
-
setTyping
- Specified by:
setTypingin interfaceTTypedEntity
-
getDeclaredType
- Specified by:
getDeclaredTypein interfaceTTypedEntity
-
getVisibility
- Specified by:
getVisibilityin interfaceTHasVisibility
-
setVisibility
- Specified by:
setVisibilityin interfaceTHasVisibility
-