Class JavaTypeAccess
- 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.TypeAccess
-
- com.hello2morrow.sonargraph.languageprovider.java.api.model.JavaTypeAccess
-
- All Implemented Interfaces:
IJavaTypeAccess,IElementAccess,INamedElementAccess,IProgrammingElementAccess,ITypeAccess
public final class JavaTypeAccess extends TypeAccess implements IJavaTypeAccess
-
-
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.IJavaTypeAccess
IJavaTypeAccess.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.ITypeAccess
ITypeAccess.IVisitor
-
-
Constructor Summary
Constructors Constructor Description JavaTypeAccess(com.hello2morrow.sonargraph.languageprovider.java.model.programming.JavaType type)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()java.lang.FloatgetClassMemberVisibilityMetric()java.util.List<IJavaFieldAccess>getFields()java.util.List<IJavaMethodAccess>getMethods()Get a list of all methods in this type.booleanisAbstract()booleanisAnnotation()booleanisDeprecated()booleanisEnum()booleanisFinal()booleanisGeneric()booleanisInner()booleanisNested()booleanisPackagePrivate()booleanisPrivate()booleanisProtected()booleanisPublic()booleanisStatic()booleanisTopLevel()-
Methods inherited from class com.hello2morrow.sonargraph.core.api.model.TypeAccess
getAverageComplexityMetric, getAverageNestingMetric, getLCOM4Metric, getMaxNestingMetric, getMetricLevel, getNumberOfStatementsMetric, getSourceElementCountMetric, isAnonymous, isClass, isInterface, typeOf
-
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.ITypeAccess
getAverageComplexityMetric, getAverageNestingMetric, getLCOM4Metric, getMaxNestingMetric, getNumberOfStatementsMetric, getSourceElementCountMetric, isAnonymous, isClass, isInterface, typeOf
-
-
-
-
Method Detail
-
isAnnotation
public final boolean isAnnotation()
- Specified by:
isAnnotationin interfaceIJavaTypeAccess
-
isEnum
public final boolean isEnum()
- Specified by:
isEnumin interfaceIJavaTypeAccess
-
isStatic
public final boolean isStatic()
- Specified by:
isStaticin interfaceIJavaTypeAccess
-
isFinal
public final boolean isFinal()
- Specified by:
isFinalin interfaceIJavaTypeAccess
-
isAbstract
public final boolean isAbstract()
- Specified by:
isAbstractin interfaceIJavaTypeAccess- Specified by:
isAbstractin interfaceITypeAccess- Overrides:
isAbstractin classTypeAccess- Returns:
- true, if this is an abstract type.
-
isNested
public boolean isNested()
- Specified by:
isNestedin interfaceIJavaTypeAccess- Specified by:
isNestedin interfaceITypeAccess- Overrides:
isNestedin classTypeAccess- Returns:
- true, if this is a nested type.
-
isInner
public boolean isInner()
- Specified by:
isInnerin interfaceIJavaTypeAccess
-
isTopLevel
public boolean isTopLevel()
- Specified by:
isTopLevelin interfaceIJavaTypeAccess
-
isGeneric
public boolean isGeneric()
- Specified by:
isGenericin interfaceIJavaTypeAccess
-
isPublic
public final boolean isPublic()
- Specified by:
isPublicin interfaceIJavaTypeAccess
-
isPrivate
public final boolean isPrivate()
- Specified by:
isPrivatein interfaceIJavaTypeAccess
-
isProtected
public final boolean isProtected()
- Specified by:
isProtectedin interfaceIJavaTypeAccess
-
isPackagePrivate
public final boolean isPackagePrivate()
- Specified by:
isPackagePrivatein interfaceIJavaTypeAccess
-
isDeprecated
public final boolean isDeprecated()
- Specified by:
isDeprecatedin interfaceIJavaTypeAccess
-
getClassMemberVisibilityMetric
public java.lang.Float getClassMemberVisibilityMetric()
- Specified by:
getClassMemberVisibilityMetricin interfaceIJavaTypeAccess
-
getAnnotations
public java.util.List<IAnnotationAccess> getAnnotations()
- Specified by:
getAnnotationsin interfaceIJavaTypeAccess
-
getMethods
public java.util.List<IJavaMethodAccess> getMethods()
Description copied from class:TypeAccessGet a list of all methods in this type.- Specified by:
getMethodsin interfaceIJavaTypeAccess- Specified by:
getMethodsin interfaceITypeAccess- Overrides:
getMethodsin classTypeAccess- Returns:
- see above
-
getFields
public java.util.List<IJavaFieldAccess> getFields()
- Specified by:
getFieldsin interfaceIJavaTypeAccess- Specified by:
getFieldsin interfaceITypeAccess- Overrides:
getFieldsin classTypeAccess- Returns:
- a list of all fields in this type.
-
accept
public void accept(INamedElementAccess.INamedElementAccessVisitor visitor)
Internal- Specified by:
acceptin interfaceINamedElementAccess- Overrides:
acceptin classTypeAccess- Parameters:
visitor- The visitor implementation
-
-