public class ProgrammingElementAccess extends ElementAccess<ProgrammingElement> implements IProgrammingElementAccess
ElementAccess.IAccessFactory
IProgrammingElementAccess.IVisitor
INamedElementAccess.INamedElementAccessVisitor
Modifier and Type | Method and Description |
---|---|
void |
accept(INamedElementAccess.INamedElementAccessVisitor visitor)
Internal
|
void |
addDependencyTo(IProgrammingElementAccess to,
IParserDependencyType depType) |
IDirectoryAccess |
getDirectory()
Get the directory of this programming element.
|
java.util.List<IAggregatedDependencyAccess> |
getIncomingDependencies(Aggregator aggr,
boolean excludeSelf,
boolean excludeExcluded,
IDependencyKind... types)
Get a list of aggregated incoming dependencies to this programming element.
|
java.util.List<IAggregatedDependencyAccess> |
getIncomingDependencies(Aggregator aggr,
boolean excludeSelf,
IDependencyKind... types)
Get a list of aggregated incoming dependencies to this programming element, excluding excluded elements.
|
java.util.List<IAggregatedDependencyAccess> |
getIncomingDependenciesRecursively(Aggregator aggr,
boolean excludeSelf,
boolean excludeExcluded,
IDependencyKind... types)
Get a list of aggregated incoming dependencies to this programming element and its direct and indirect children.
|
java.util.List<IAggregatedDependencyAccess> |
getIncomingDependenciesRecursively(Aggregator aggr,
boolean excludeSelf,
IDependencyKind... types)
Get a list of aggregated incoming dependencies to this programming element and its direct and indirect children, excluding excluded elements.
|
int |
getLineNumber()
Get the line number of this programming element.
|
IModuleAccess |
getModule()
Get the module of this programming element.
|
ILogicalNamespaceAccess |
getModuleNamespace()
Get the module scope logical namespace for this element.
|
java.util.List<IAggregatedDependencyAccess> |
getOutgoingDependencies(Aggregator aggr,
boolean excludeSelf,
boolean excludeExternals,
boolean excludeExcluded,
IDependencyKind... types)
Get a list of aggregated outgoing dependencies from this programming element.
|
java.util.List<IAggregatedDependencyAccess> |
getOutgoingDependencies(Aggregator aggr,
boolean excludeSelf,
boolean excludeExternals,
IDependencyKind... types)
Get a list of aggregated outgoing dependencies from this programming element, excluding excluded elements.
|
java.util.List<IAggregatedDependencyAccess> |
getOutgoingDependencies(Aggregator aggr,
boolean excludeSelf,
IDependencyKind... types)
Get a list of aggregated outgoing dependencies from this programming element, including external elements, excluding excluded elements.
|
java.util.List<IAggregatedDependencyAccess> |
getOutgoingDependenciesRecursively(Aggregator aggr,
boolean excludeSelf,
boolean excludeExternals,
boolean excludeExcluded,
IDependencyKind... types)
Get a list of aggregated outgoing dependencies from this programming element and its direct and indirect children.
|
java.util.List<IAggregatedDependencyAccess> |
getOutgoingDependenciesRecursively(Aggregator aggr,
boolean excludeSelf,
boolean excludeExternals,
IDependencyKind... types)
Get a list of aggregated outgoing dependencies from this programming element and its direct and indirect children, excluding excluded elements.
|
java.util.List<IAggregatedDependencyAccess> |
getOutgoingDependenciesRecursively(Aggregator aggr,
boolean excludeSelf,
IDependencyKind... types)
Get a list of aggregated outgoing dependencies from this programming element and its direct and indirect children, including external elements,
excluding excluded elements.
|
java.util.List<INamedElementAccess> |
getReferencedElements(Aggregator aggr,
boolean excludeSelf,
boolean excludeExternals,
boolean excludeExcluded,
IDependencyKind... types)
Get a list of elements referenced from this programming element via dependencies.
|
java.util.List<INamedElementAccess> |
getReferencedElements(Aggregator aggr,
boolean excludeSelf,
boolean excludeExternals,
IDependencyKind... types)
Get a list of elements referenced from this programming element via dependencies, excluding excluded elements.
|
java.util.List<INamedElementAccess> |
getReferencedElements(Aggregator aggr,
boolean excludeSelf,
IDependencyKind... types)
Get a list of elements referenced from this programming element via dependencies, including external elements, excluding excluded elements.
|
java.util.List<INamedElementAccess> |
getReferencedElementsRecursively(Aggregator aggr,
boolean excludeSelf,
boolean excludeExternals,
boolean excludeExcluded,
IDependencyKind... types)
Get a list of elements referenced from this programming element and its direct and indirect children via dependencies.
|
java.util.List<INamedElementAccess> |
getReferencedElementsRecursively(Aggregator aggr,
boolean excludeSelf,
boolean excludeExternals,
IDependencyKind... types)
Get a list of elements referenced from this programming element and its direct and indirect children via dependencies, excluding excluded
elements.
|
java.util.List<INamedElementAccess> |
getReferencedElementsRecursively(Aggregator aggr,
boolean excludeSelf,
IDependencyKind... types)
Get a list of elements referenced from this programming element and its direct and indirect children via dependencies, including external
elements, excluding excluded elements.
|
java.util.List<INamedElementAccess> |
getReferencingElements(Aggregator aggr,
boolean excludeSelf,
boolean excludeExcluded,
IDependencyKind... types)
Get a list of elements referencing this programming element via dependencies.
|
java.util.List<INamedElementAccess> |
getReferencingElements(Aggregator aggr,
boolean excludeSelf,
IDependencyKind... types)
Get a list of elements referencing this programming element via dependencies, excluding excluded elements.
|
java.util.List<INamedElementAccess> |
getReferencingElementsRecursively(Aggregator aggr,
boolean excludeSelf,
boolean excludeExcluded,
IDependencyKind... types)
Get a list of elements referencing this programming element and its direct and indirect children via dependencies.
|
java.util.List<INamedElementAccess> |
getReferencingElementsRecursively(Aggregator aggr,
boolean excludeSelf,
IDependencyKind... types)
Get a list of elements referencing this programming element and its direct and indirect children via dependencies, excluding excluded elements.
|
IDirectoryAccess |
getRootDirectory()
Get the root directory of this programming element.
|
ISourceFileAccess |
getSourceFile()
Get the source file of this programming element.
|
ILogicalNamespaceAccess |
getSystemNamespace()
Get the system scope logical namespace for this element.
|
boolean |
isDefinedInEnclosingElement()
Return false for methods, that are called on the class, but are defined in a base class or base interface.
|
equals, getChildren, getElement, getName, getNameWithSignature, getParent, getShortName, getShortNameWithSignature, hashCode, ignoreIssues, isExcluded, isExternal, toString
getChildren, getParent
getName, getNameWithSignature, getShortName, getShortNameWithSignature, ignoreIssues, isExcluded, isExternal
public final boolean isDefinedInEnclosingElement()
isDefinedInEnclosingElement
in interface IProgrammingElementAccess
public final IModuleAccess getModule()
getModule
in interface IProgrammingElementAccess
public final ILogicalNamespaceAccess getSystemNamespace()
getSystemNamespace
in interface IProgrammingElementAccess
null
if element is "external"public final ILogicalNamespaceAccess getModuleNamespace()
getModuleNamespace
in interface IProgrammingElementAccess
null
if element is "external"public final IDirectoryAccess getRootDirectory()
getRootDirectory
in interface IProgrammingElementAccess
public final IDirectoryAccess getDirectory()
getDirectory
in interface IProgrammingElementAccess
public final ISourceFileAccess getSourceFile()
getSourceFile
in interface IProgrammingElementAccess
public final int getLineNumber()
getLineNumber
in interface IProgrammingElementAccess
public final java.util.List<IAggregatedDependencyAccess> getOutgoingDependencies(Aggregator aggr, boolean excludeSelf, boolean excludeExternals, boolean excludeExcluded, IDependencyKind... types)
getOutgoingDependencies
in interface IProgrammingElementAccess
aggr
- The desired aggregation levelexcludeSelf
- If true, dependencies to this element and its children are excludedexcludeExternals
- If true, dependencies to external objects are excludedexcludeExcluded
- If true, dependencies to excluded objects are excludedtypes
- List of dependency types, if empty return all dependenciespublic final java.util.List<IAggregatedDependencyAccess> getOutgoingDependencies(Aggregator aggr, boolean excludeSelf, boolean excludeExternals, IDependencyKind... types)
getOutgoingDependencies
in interface IProgrammingElementAccess
aggr
- The desired aggregation levelexcludeSelf
- If true, dependencies to this element and its children are excludedexcludeExternals
- If true, dependencies to external objects are excludedtypes
- List of dependency types, if empty return all dependenciespublic final java.util.List<IAggregatedDependencyAccess> getOutgoingDependencies(Aggregator aggr, boolean excludeSelf, IDependencyKind... types)
getOutgoingDependencies
in interface IProgrammingElementAccess
aggr
- The desired aggregation levelexcludeSelf
- If true, dependencies to this element and its children are excludedtypes
- List of dependency types, if empty return all dependenciespublic final java.util.List<IAggregatedDependencyAccess> getIncomingDependencies(Aggregator aggr, boolean excludeSelf, boolean excludeExcluded, IDependencyKind... types)
getIncomingDependencies
in interface IProgrammingElementAccess
aggr
- The desired aggregation levelexcludeSelf
- If true, dependencies from this element and its children are excludedexcludeExcluded
- If true, dependencies from excluded objects are excludedtypes
- List of dependency types, if empty return all dependenciespublic final java.util.List<IAggregatedDependencyAccess> getIncomingDependencies(Aggregator aggr, boolean excludeSelf, IDependencyKind... types)
getIncomingDependencies
in interface IProgrammingElementAccess
aggr
- The desired aggregation levelexcludeSelf
- If true, dependencies from this element and its children are excludedtypes
- List of dependency types, if empty return all dependenciespublic final java.util.List<IAggregatedDependencyAccess> getOutgoingDependenciesRecursively(Aggregator aggr, boolean excludeSelf, boolean excludeExternals, boolean excludeExcluded, IDependencyKind... types)
getOutgoingDependenciesRecursively
in interface INamedElementAccess
getOutgoingDependenciesRecursively
in class ElementAccess<ProgrammingElement>
aggr
- The desired aggregation levelexcludeSelf
- If true, dependencies to this element and its children are excludedexcludeExternals
- If true, dependencies to external objects are excludedexcludeExcluded
- If true, dependencies to excluded objects are excludedtypes
- List of dependency types, if empty return all dependenciespublic final java.util.List<IAggregatedDependencyAccess> getOutgoingDependenciesRecursively(Aggregator aggr, boolean excludeSelf, boolean excludeExternals, IDependencyKind... types)
getOutgoingDependenciesRecursively
in interface INamedElementAccess
getOutgoingDependenciesRecursively
in class ElementAccess<ProgrammingElement>
aggr
- The desired aggregation levelexcludeSelf
- If true, dependencies to this element and its children are excludedexcludeExternals
- If true, dependencies to external objects are excludedtypes
- List of dependency types, if empty return all dependenciespublic final java.util.List<IAggregatedDependencyAccess> getOutgoingDependenciesRecursively(Aggregator aggr, boolean excludeSelf, IDependencyKind... types)
getOutgoingDependenciesRecursively
in interface INamedElementAccess
getOutgoingDependenciesRecursively
in class ElementAccess<ProgrammingElement>
aggr
- The desired aggregation levelexcludeSelf
- If true, dependencies to this element and its children are excludedtypes
- List of dependency types, if empty return all dependenciespublic final java.util.List<IAggregatedDependencyAccess> getIncomingDependenciesRecursively(Aggregator aggr, boolean excludeSelf, boolean excludeExcluded, IDependencyKind... types)
getIncomingDependenciesRecursively
in interface INamedElementAccess
getIncomingDependenciesRecursively
in class ElementAccess<ProgrammingElement>
aggr
- The desired aggregation levelexcludeSelf
- If true, dependencies from this element and its children are excludedexcludeExcluded
- If true, dependencies from excluded objects are excludedtypes
- List of dependency types, if empty return all dependenciespublic final java.util.List<IAggregatedDependencyAccess> getIncomingDependenciesRecursively(Aggregator aggr, boolean excludeSelf, IDependencyKind... types)
getIncomingDependenciesRecursively
in interface INamedElementAccess
getIncomingDependenciesRecursively
in class ElementAccess<ProgrammingElement>
aggr
- The desired aggregation levelexcludeSelf
- If true, dependencies from this element and its children are excludedtypes
- List of dependency types, if empty return all dependenciespublic final java.util.List<INamedElementAccess> getReferencedElements(Aggregator aggr, boolean excludeSelf, boolean excludeExternals, boolean excludeExcluded, IDependencyKind... types)
getReferencedElements
in interface IProgrammingElementAccess
aggr
- The desired aggregation levelexcludeSelf
- If true, this element and its children are excluded from the resultexcludeExternals
- If true, external elements are excludedexcludeExcluded
- If true, excluded elements are excludedtypes
- List of dependency types, if empty return all dependenciespublic final java.util.List<INamedElementAccess> getReferencedElements(Aggregator aggr, boolean excludeSelf, boolean excludeExternals, IDependencyKind... types)
getReferencedElements
in interface IProgrammingElementAccess
aggr
- The desired aggregation levelexcludeSelf
- If true, this element and its children are excluded from the resultexcludeExternals
- If true, external elements are excludedtypes
- List of dependency types, if empty return all dependenciespublic final java.util.List<INamedElementAccess> getReferencedElements(Aggregator aggr, boolean excludeSelf, IDependencyKind... types)
getReferencedElements
in interface IProgrammingElementAccess
aggr
- The desired aggregation levelexcludeSelf
- If true, this element and its children are excluded from the resulttypes
- List of dependency types, if empty return all dependenciespublic final java.util.List<INamedElementAccess> getReferencingElements(Aggregator aggr, boolean excludeSelf, boolean excludeExcluded, IDependencyKind... types)
getReferencingElements
in interface IProgrammingElementAccess
aggr
- The desired aggregation levelexcludeSelf
- If true, this element and its children are excluded from the resultexcludeExcluded
- If true, excluded elements are excludedtypes
- List of dependency types, if empty return all dependenciespublic final java.util.List<INamedElementAccess> getReferencingElements(Aggregator aggr, boolean excludeSelf, IDependencyKind... types)
getReferencingElements
in interface IProgrammingElementAccess
aggr
- The desired aggregation levelexcludeSelf
- If true, this element and its children are excluded from the resulttypes
- List of dependency types, if empty return all dependenciespublic final java.util.List<INamedElementAccess> getReferencedElementsRecursively(Aggregator aggr, boolean excludeSelf, boolean excludeExternals, boolean excludeExcluded, IDependencyKind... types)
getReferencedElementsRecursively
in interface INamedElementAccess
getReferencedElementsRecursively
in class ElementAccess<ProgrammingElement>
aggr
- The desired aggregation levelexcludeSelf
- If true, this element and its children are excluded from the resultexcludeExternals
- If true, external elements are excludedexcludeExcluded
- If true, excluded elements are excludedtypes
- List of dependency types, if empty return all dependenciespublic final java.util.List<INamedElementAccess> getReferencedElementsRecursively(Aggregator aggr, boolean excludeSelf, boolean excludeExternals, IDependencyKind... types)
getReferencedElementsRecursively
in interface INamedElementAccess
getReferencedElementsRecursively
in class ElementAccess<ProgrammingElement>
aggr
- The desired aggregation levelexcludeSelf
- If true, this element and its children are excluded from the resultexcludeExternals
- If true, external elements are excludedtypes
- List of dependency types, if empty return all dependenciespublic final java.util.List<INamedElementAccess> getReferencedElementsRecursively(Aggregator aggr, boolean excludeSelf, IDependencyKind... types)
getReferencedElementsRecursively
in interface INamedElementAccess
getReferencedElementsRecursively
in class ElementAccess<ProgrammingElement>
aggr
- The desired aggregation levelexcludeSelf
- If true, this element and its children are excluded from the resulttypes
- List of dependency types, if empty return all dependenciespublic final java.util.List<INamedElementAccess> getReferencingElementsRecursively(Aggregator aggr, boolean excludeSelf, boolean excludeExcluded, IDependencyKind... types)
getReferencingElementsRecursively
in interface INamedElementAccess
getReferencingElementsRecursively
in class ElementAccess<ProgrammingElement>
aggr
- The desired aggregation levelexcludeSelf
- If true, this element and its children are excluded from the resultexcludeExcluded
- If true, excluded elements are excludedtypes
- List of dependency types, if empty return all dependenciespublic final java.util.List<INamedElementAccess> getReferencingElementsRecursively(Aggregator aggr, boolean excludeSelf, IDependencyKind... types)
getReferencingElementsRecursively
in interface INamedElementAccess
getReferencingElementsRecursively
in class ElementAccess<ProgrammingElement>
aggr
- The desired aggregation levelexcludeSelf
- If true, this element and its children are excluded from the resulttypes
- List of dependency types, if empty return all dependenciespublic void addDependencyTo(IProgrammingElementAccess to, IParserDependencyType depType)
addDependencyTo
in interface IProgrammingElementAccess
public void accept(INamedElementAccess.INamedElementAccessVisitor visitor)
accept
in interface INamedElementAccess
accept
in class ElementAccess<ProgrammingElement>
visitor
- The visitor implementation