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 voidaccept(INamedElementAccess.INamedElementAccessVisitor visitor)Internaljava.util.List<IAnnotationAccess>getAnnotations()IJavaTypeAccessgetParent()Provides access to the parent.booleanisDeprecated()booleanisFinal()booleanisGeneric()booleanisPackagePrivate()booleanisPrivate()booleanisProtected()booleanisPublic()booleanisStatic()booleanisTransient()booleanisVolatile()-
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:ElementAccessProvides access to the parent.- Specified by:
getParentin interfaceIJavaFieldAccess- 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 interfaceIJavaFieldAccess
-
isStatic
public final boolean isStatic()
- Specified by:
isStaticin interfaceIJavaFieldAccess
-
isFinal
public final boolean isFinal()
- Specified by:
isFinalin interfaceIJavaFieldAccess
-
isPublic
public final boolean isPublic()
- Specified by:
isPublicin interfaceIJavaFieldAccess
-
isPrivate
public final boolean isPrivate()
- Specified by:
isPrivatein interfaceIJavaFieldAccess
-
isProtected
public final boolean isProtected()
- Specified by:
isProtectedin interfaceIJavaFieldAccess
-
isPackagePrivate
public final boolean isPackagePrivate()
- Specified by:
isPackagePrivatein interfaceIJavaFieldAccess
-
isDeprecated
public final boolean isDeprecated()
- Specified by:
isDeprecatedin interfaceIJavaFieldAccess
-
isVolatile
public boolean isVolatile()
- Specified by:
isVolatilein interfaceIJavaFieldAccess
-
isTransient
public boolean isTransient()
- Specified by:
isTransientin interfaceIJavaFieldAccess
-
isGeneric
public boolean isGeneric()
- Specified by:
isGenericin interfaceIJavaFieldAccess
-
accept
public void accept(INamedElementAccess.INamedElementAccessVisitor visitor)
Internal- Specified by:
acceptin interfaceINamedElementAccess- Overrides:
acceptin classFieldAccess- Parameters:
visitor- The visitor implementation
-
-