Class JavaMethodAccess
- 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
-
- com.hello2morrow.sonargraph.languageprovider.java.api.model.JavaMethodAccess
-
- All Implemented Interfaces:
IJavaMethodAccess,IElementAccess,IMethodAccess,INamedElementAccess,IProgrammingElementAccess,IRoutineAccess
public final class JavaMethodAccess extends MethodAccess implements IJavaMethodAccess
-
-
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.java.IJavaMethodAccess
IJavaMethodAccess.IVisitor
-
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 JavaMethodAccess(com.hello2morrow.sonargraph.languageprovider.java.model.programming.JavaMethod element)Internal use only
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaccept(INamedElementAccess.INamedElementAccessVisitor visitor)Internaljava.util.List<IAnnotationAccess>getAnnotations()intgetEndLineNumber()IJavaTypeAccessgetParent()Provides access to the parent.booleanisCompilerGenerated()booleanisConstructor()booleanisDeprecated()booleanisFinal()booleanisGeneric()booleanisNative()booleanisPackagePrivate()booleanisPrivate()booleanisProtected()booleanisPublic()booleanisStatic()booleanisStaticBlock()booleanisSynchronized()-
Methods inherited from class com.hello2morrow.sonargraph.core.api.model.MethodAccess
isAbstract, isDestructor, isInitializer, isOverriding
-
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, 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.IMethodAccess
isAbstract, isDestructor, isInitializer, isOverriding
-
Methods inherited from interface com.hello2morrow.sonargraph.api.model.INamedElementAccess
getChildren, getFullyQualifiedName, getIncomingDependenciesRecursively, getIncomingDependenciesRecursively, getIssueCount, getIssueCount, getOutgoingDependenciesRecursively, getOutgoingDependenciesRecursively, getOutgoingDependenciesRecursively, 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
-
getParent
public IJavaTypeAccess getParent()
Description copied from class:ElementAccessProvides access to the parent.- Specified by:
getParentin interfaceIJavaMethodAccess- Specified by:
getParentin interfaceINamedElementAccess- Overrides:
getParentin classElementAccess<com.hello2morrow.sonargraph.core.model.programming.ProgrammingElement>- Returns:
- the parent or 'null' if there is no parent.
-
getAnnotations
public java.util.List<IAnnotationAccess> getAnnotations()
- Specified by:
getAnnotationsin interfaceIJavaMethodAccess
-
isStatic
public boolean isStatic()
- Specified by:
isStaticin interfaceIJavaMethodAccess
-
isFinal
public boolean isFinal()
- Specified by:
isFinalin interfaceIJavaMethodAccess
-
isGeneric
public boolean isGeneric()
- Specified by:
isGenericin interfaceIJavaMethodAccess
-
isPublic
public boolean isPublic()
- Specified by:
isPublicin interfaceIJavaMethodAccess
-
isPrivate
public boolean isPrivate()
- Specified by:
isPrivatein interfaceIJavaMethodAccess
-
isProtected
public boolean isProtected()
- Specified by:
isProtectedin interfaceIJavaMethodAccess
-
isPackagePrivate
public boolean isPackagePrivate()
- Specified by:
isPackagePrivatein interfaceIJavaMethodAccess
-
isDeprecated
public boolean isDeprecated()
- Specified by:
isDeprecatedin interfaceIJavaMethodAccess
-
isNative
public boolean isNative()
- Specified by:
isNativein interfaceIJavaMethodAccess
-
isSynchronized
public boolean isSynchronized()
- Specified by:
isSynchronizedin interfaceIJavaMethodAccess
-
isConstructor
public boolean isConstructor()
- Specified by:
isConstructorin interfaceIJavaMethodAccess
-
isStaticBlock
public boolean isStaticBlock()
- Specified by:
isStaticBlockin interfaceIJavaMethodAccess
-
isCompilerGenerated
public boolean isCompilerGenerated()
- Specified by:
isCompilerGeneratedin interfaceIJavaMethodAccess
-
getEndLineNumber
public int getEndLineNumber()
- Specified by:
getEndLineNumberin interfaceIJavaMethodAccess- Returns:
- the line of the last statement in this method or -1 if not available.
-
accept
public void accept(INamedElementAccess.INamedElementAccessVisitor visitor)
Internal- Specified by:
acceptin interfaceINamedElementAccess- Overrides:
acceptin classMethodAccess- Parameters:
visitor- The visitor implementation
-
-