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 void
accept(INamedElementAccess.INamedElementAccessVisitor visitor)
Internaljava.util.List<IAnnotationAccess>
getAnnotations()
int
getEndLineNumber()
IJavaTypeAccess
getParent()
Provides access to the parent.boolean
isCompilerGenerated()
boolean
isConstructor()
boolean
isDeprecated()
boolean
isFinal()
boolean
isGeneric()
boolean
isNative()
boolean
isPackagePrivate()
boolean
isPrivate()
boolean
isProtected()
boolean
isPublic()
boolean
isStatic()
boolean
isStaticBlock()
boolean
isSynchronized()
-
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:ElementAccess
Provides access to the parent.- Specified by:
getParent
in interfaceIJavaMethodAccess
- Specified by:
getParent
in interfaceINamedElementAccess
- Overrides:
getParent
in 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:
getAnnotations
in interfaceIJavaMethodAccess
-
isStatic
public boolean isStatic()
- Specified by:
isStatic
in interfaceIJavaMethodAccess
-
isFinal
public boolean isFinal()
- Specified by:
isFinal
in interfaceIJavaMethodAccess
-
isGeneric
public boolean isGeneric()
- Specified by:
isGeneric
in interfaceIJavaMethodAccess
-
isPublic
public boolean isPublic()
- Specified by:
isPublic
in interfaceIJavaMethodAccess
-
isPrivate
public boolean isPrivate()
- Specified by:
isPrivate
in interfaceIJavaMethodAccess
-
isProtected
public boolean isProtected()
- Specified by:
isProtected
in interfaceIJavaMethodAccess
-
isPackagePrivate
public boolean isPackagePrivate()
- Specified by:
isPackagePrivate
in interfaceIJavaMethodAccess
-
isDeprecated
public boolean isDeprecated()
- Specified by:
isDeprecated
in interfaceIJavaMethodAccess
-
isNative
public boolean isNative()
- Specified by:
isNative
in interfaceIJavaMethodAccess
-
isSynchronized
public boolean isSynchronized()
- Specified by:
isSynchronized
in interfaceIJavaMethodAccess
-
isConstructor
public boolean isConstructor()
- Specified by:
isConstructor
in interfaceIJavaMethodAccess
-
isStaticBlock
public boolean isStaticBlock()
- Specified by:
isStaticBlock
in interfaceIJavaMethodAccess
-
isCompilerGenerated
public boolean isCompilerGenerated()
- Specified by:
isCompilerGenerated
in interfaceIJavaMethodAccess
-
getEndLineNumber
public int getEndLineNumber()
- Specified by:
getEndLineNumber
in 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:
accept
in interfaceINamedElementAccess
- Overrides:
accept
in classMethodAccess
- Parameters:
visitor
- The visitor implementation
-
-