public class ProgrammingElementAccess extends ElementAccess<ProgrammingElement> implements IProgrammingElementAccess
ElementAccess.IAccessFactoryIProgrammingElementAccess.IVisitorINamedElementAccess.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, toStringgetChildren, getParentgetName, getNameWithSignature, getShortName, getShortNameWithSignature, ignoreIssues, isExcluded, isExternalpublic final boolean isDefinedInEnclosingElement()
isDefinedInEnclosingElement in interface IProgrammingElementAccesspublic final IModuleAccess getModule()
getModule in interface IProgrammingElementAccesspublic final ILogicalNamespaceAccess getSystemNamespace()
getSystemNamespace in interface IProgrammingElementAccessnull if element is "external"public final ILogicalNamespaceAccess getModuleNamespace()
getModuleNamespace in interface IProgrammingElementAccessnull if element is "external"public final IDirectoryAccess getRootDirectory()
getRootDirectory in interface IProgrammingElementAccesspublic final IDirectoryAccess getDirectory()
getDirectory in interface IProgrammingElementAccesspublic final ISourceFileAccess getSourceFile()
getSourceFile in interface IProgrammingElementAccesspublic final int getLineNumber()
getLineNumber in interface IProgrammingElementAccesspublic final java.util.List<IAggregatedDependencyAccess> getOutgoingDependencies(Aggregator aggr, boolean excludeSelf, boolean excludeExternals, boolean excludeExcluded, IDependencyKind... types)
getOutgoingDependencies in interface IProgrammingElementAccessaggr - 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 IProgrammingElementAccessaggr - 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 IProgrammingElementAccessaggr - 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 IProgrammingElementAccessaggr - 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 IProgrammingElementAccessaggr - 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 INamedElementAccessgetOutgoingDependenciesRecursively 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 INamedElementAccessgetOutgoingDependenciesRecursively 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 INamedElementAccessgetOutgoingDependenciesRecursively 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 INamedElementAccessgetIncomingDependenciesRecursively 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 INamedElementAccessgetIncomingDependenciesRecursively 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 IProgrammingElementAccessaggr - 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 IProgrammingElementAccessaggr - 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 IProgrammingElementAccessaggr - 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 IProgrammingElementAccessaggr - 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 IProgrammingElementAccessaggr - 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 INamedElementAccessgetReferencedElementsRecursively 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 INamedElementAccessgetReferencedElementsRecursively 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 INamedElementAccessgetReferencedElementsRecursively 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 INamedElementAccessgetReferencingElementsRecursively 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 INamedElementAccessgetReferencingElementsRecursively 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 IProgrammingElementAccesspublic void accept(INamedElementAccess.INamedElementAccessVisitor visitor)
accept in interface INamedElementAccessaccept in class ElementAccess<ProgrammingElement>visitor - The visitor implementation