Class MethodAccess
- java.lang.Object
-
- com.hello2morrow.sonargraph.core.api.model.ElementAccess<com.hello2morrow.sonargraph.core.model.programming.ProgrammingElement>
-
- com.hello2morrow.sonargraph.core.api.model.ProgrammingElementAccess
-
- com.hello2morrow.sonargraph.core.api.model.RoutineAccess
-
- com.hello2morrow.sonargraph.core.api.model.MethodAccess
-
- All Implemented Interfaces:
IElementAccess,IMethodAccess,INamedElementAccess,IProgrammingElementAccess,IRoutineAccess
- Direct Known Subclasses:
CppMethodAccess,CSharpMethodAccess,GenericMethodAccess,JavaMethodAccess
public class MethodAccess extends RoutineAccess implements IMethodAccess
Access object for member functions (methods)
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class com.hello2morrow.sonargraph.core.api.model.ElementAccess
ElementAccess.IAccessFactory
-
Nested classes/interfaces inherited from interface com.hello2morrow.sonargraph.api.model.IMethodAccess
IMethodAccess.IVisitor
-
Nested classes/interfaces inherited from interface com.hello2morrow.sonargraph.api.model.INamedElementAccess
INamedElementAccess.INamedElementAccessVisitor
-
Nested classes/interfaces inherited from interface com.hello2morrow.sonargraph.api.model.IProgrammingElementAccess
IProgrammingElementAccess.IVisitor
-
Nested classes/interfaces inherited from interface com.hello2morrow.sonargraph.api.model.IRoutineAccess
IRoutineAccess.IVisitor
-
-
Constructor Summary
Constructors Constructor Description MethodAccess(com.hello2morrow.sonargraph.core.model.programming.IMethod element)Internal use only
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaccept(INamedElementAccess.INamedElementAccessVisitor visitor)InternalbooleanisAbstract()booleanisDestructor()booleanisInitializer()booleanisOverriding()-
Methods inherited from class com.hello2morrow.sonargraph.core.api.model.RoutineAccess
getCyclomaticComplexityMetric, getExtendedCyclomaticComplexityMetric, getMaxNesting, getMetricLevel, getModifiedCyclomaticComplexityMetric, getModifiedExtendedCyclomaticComplexityMetric, getNumberOfParametersMetric, getNumberOfStatementsMetric, getParameterTypes, getReturnType
-
Methods inherited from class com.hello2morrow.sonargraph.core.api.model.ProgrammingElementAccess
getDirectory, getIncomingDependencies, getIncomingDependencies, getIncomingDependenciesRecursively, getIncomingDependenciesRecursively, getLineNumber, getModule, getModuleNamespace, getOutgoingDependencies, getOutgoingDependencies, getOutgoingDependencies, getOutgoingDependenciesRecursively, getOutgoingDependenciesRecursively, getOutgoingDependenciesRecursively, getReferencedElements, getReferencedElements, getReferencedElements, getReferencedElementsRecursively, getReferencedElementsRecursively, getReferencedElementsRecursively, getReferencingElements, getReferencingElements, getReferencingElementsRecursively, getReferencingElementsRecursively, getRootDirectory, getSourceFile, getSystemNamespace, isDefinedInEnclosingElement
-
Methods inherited from class com.hello2morrow.sonargraph.core.api.model.ElementAccess
equals, getChildren, getElement, getFullyQualifiedName, getIssueCount, getName, getNameWithSignature, getParent, getParent, getShortName, getShortNameWithSignature, hashCode, ignoreIssues, isExcluded, isExternal, setFactory, toString
-
Methods inherited from interface com.hello2morrow.sonargraph.api.model.IElementAccess
getName, getNameWithSignature, getShortName, getShortNameWithSignature, ignoreIssues, isExcluded, isExternal
-
Methods inherited from interface com.hello2morrow.sonargraph.api.model.INamedElementAccess
getChildren, getFullyQualifiedName, getIncomingDependenciesRecursively, getIncomingDependenciesRecursively, getIssueCount, getIssueCount, getOutgoingDependenciesRecursively, getOutgoingDependenciesRecursively, getOutgoingDependenciesRecursively, getParent, getParent, getReferencedElementsRecursively, getReferencedElementsRecursively, getReferencedElementsRecursively, getReferencingElementsRecursively, getReferencingElementsRecursively
-
Methods inherited from interface com.hello2morrow.sonargraph.api.model.IProgrammingElementAccess
getDirectory, getIncomingDependencies, getIncomingDependencies, getLineNumber, getModule, getModuleNamespace, getOutgoingDependencies, getOutgoingDependencies, getOutgoingDependencies, getReferencedElements, getReferencedElements, getReferencedElements, getReferencingElements, getReferencingElements, getRootDirectory, getSourceFile, getSystemNamespace, isDefinedInEnclosingElement
-
Methods inherited from interface com.hello2morrow.sonargraph.api.model.IRoutineAccess
getCyclomaticComplexityMetric, getExtendedCyclomaticComplexityMetric, getMaxNesting, getModifiedCyclomaticComplexityMetric, getModifiedExtendedCyclomaticComplexityMetric, getNumberOfParametersMetric, getNumberOfStatementsMetric
-
-
-
-
Method Detail
-
isAbstract
public final boolean isAbstract()
- Specified by:
isAbstractin interfaceIMethodAccess- Returns:
- true for abstract methods
-
isInitializer
public final boolean isInitializer()
- Specified by:
isInitializerin interfaceIMethodAccess- Returns:
- true for initializer methods
-
isDestructor
public final boolean isDestructor()
- Specified by:
isDestructorin interfaceIMethodAccess- Returns:
- true for destructors
-
isOverriding
public final boolean isOverriding()
- Specified by:
isOverridingin interfaceIMethodAccess- Returns:
- true for methods that override superclass methods
-
accept
public void accept(INamedElementAccess.INamedElementAccessVisitor visitor)
Internal- Specified by:
acceptin interfaceINamedElementAccess- Overrides:
acceptin classRoutineAccess- Parameters:
visitor- The visitor implementation
-
-