Class Region
java.lang.Object
org.aspectj.org.eclipse.jdt.internal.core.Region
- All Implemented Interfaces:
IRegion
- See Also:
IRegion
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
add(IJavaElement element)
Adds the given element and all of its descendents to this region.boolean
contains(IJavaElement element)
Returns whether the given element is contained in this region.Returns the top level elements in this region.protected IJavaElement
getParent(IJavaElement element)
boolean
remove(IJavaElement element)
Removes the specified element from the region and returnstrue
if successful,false
if the remove fails.
-
Constructor Details
-
Region
public Region()
-
-
Method Details
-
add
Description copied from interface:IRegion
Adds 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:IRegion
Returns whether the given element is contained in this region. -
getElements
Description copied from interface:IRegion
Returns the top level elements in this region. All descendents of these elements are also included in this region.- Specified by:
getElements
in interfaceIRegion
- Returns:
- the top level elements in this region
-
remove
Description copied from interface:IRegion
Removes the specified element from the region and returnstrue
if successful,false
if 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
-