Class Region
java.lang.Object
org.aspectj.org.eclipse.jdt.internal.core.Region
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidadd(IJavaElement element) Adds the given element and all of its descendents to this region.booleancontains(IJavaElement element) Returns whether the given element is contained in this region.Returns the top level elements in this region.protected IJavaElementgetParent(IJavaElement element) booleanremove(IJavaElement element) Removes the specified element from the region and returnstrueif successful,falseif the remove fails.
-
Constructor Details
-
Region
public Region()
-
-
Method Details
-
add
Description copied from interface:IRegionAdds the given element and all of its descendents to this region. If the specified element is already included, or one of its ancestors is already included, this has no effect. If the element being added is an ancestor of an element already contained in this region, the ancestor subsumes the descendent. -
contains
Description copied from interface:IRegionReturns whether the given element is contained in this region. -
getElements
Description copied from interface:IRegionReturns the top level elements in this region. All descendents of these elements are also included in this region.- Specified by:
getElementsin interfaceIRegion- Returns:
- the top level elements in this region
-
remove
Description copied from interface:IRegionRemoves the specified element from the region and returnstrueif successful,falseif the remove fails. If an ancestor of the given element is included, the remove fails (in other words, it is not possible to selectively exclude descendants of included ancestors). -
getParent
-