Class JavaFieldAccess
- 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.FieldAccess
-
- com.hello2morrow.sonargraph.languageprovider.java.api.model.JavaFieldAccess
-
- All Implemented Interfaces:
IJavaFieldAccess
,IElementAccess
,IFieldAccess
,INamedElementAccess
,IProgrammingElementAccess
public final class JavaFieldAccess extends FieldAccess implements IJavaFieldAccess
-
-
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.IFieldAccess
IFieldAccess.IVisitor
-
Nested classes/interfaces inherited from interface com.hello2morrow.sonargraph.api.java.IJavaFieldAccess
IJavaFieldAccess.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
-
-
Constructor Summary
Constructors Constructor Description JavaFieldAccess(com.hello2morrow.sonargraph.languageprovider.java.model.programming.JavaField 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()
IJavaTypeAccess
getParent()
Provides access to the parent.boolean
isDeprecated()
boolean
isFinal()
boolean
isGeneric()
boolean
isPackagePrivate()
boolean
isPrivate()
boolean
isProtected()
boolean
isPublic()
boolean
isStatic()
boolean
isTransient()
boolean
isVolatile()
-
Methods inherited from class com.hello2morrow.sonargraph.core.api.model.ProgrammingElementAccess
getDirectory, getIncomingDependencies, getIncomingDependencies, getIncomingDependenciesRecursively, getIncomingDependenciesRecursively, getLineNumber, getMetricLevel, 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.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
-
-
-
-
Method Detail
-
getParent
public IJavaTypeAccess getParent()
Description copied from class:ElementAccess
Provides access to the parent.- Specified by:
getParent
in interfaceIJavaFieldAccess
- 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 interfaceIJavaFieldAccess
-
isStatic
public final boolean isStatic()
- Specified by:
isStatic
in interfaceIJavaFieldAccess
-
isFinal
public final boolean isFinal()
- Specified by:
isFinal
in interfaceIJavaFieldAccess
-
isPublic
public final boolean isPublic()
- Specified by:
isPublic
in interfaceIJavaFieldAccess
-
isPrivate
public final boolean isPrivate()
- Specified by:
isPrivate
in interfaceIJavaFieldAccess
-
isProtected
public final boolean isProtected()
- Specified by:
isProtected
in interfaceIJavaFieldAccess
-
isPackagePrivate
public final boolean isPackagePrivate()
- Specified by:
isPackagePrivate
in interfaceIJavaFieldAccess
-
isDeprecated
public final boolean isDeprecated()
- Specified by:
isDeprecated
in interfaceIJavaFieldAccess
-
isVolatile
public boolean isVolatile()
- Specified by:
isVolatile
in interfaceIJavaFieldAccess
-
isTransient
public boolean isTransient()
- Specified by:
isTransient
in interfaceIJavaFieldAccess
-
isGeneric
public boolean isGeneric()
- Specified by:
isGeneric
in interfaceIJavaFieldAccess
-
accept
public void accept(INamedElementAccess.INamedElementAccessVisitor visitor)
Internal- Specified by:
accept
in interfaceINamedElementAccess
- Overrides:
accept
in classFieldAccess
- Parameters:
visitor
- The visitor implementation
-
-