|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.eclipse.jdt.internal.core.Region
public class Region
IRegion
Constructor Summary | |
---|---|
Region()
Creates an empty region. |
Method Summary | |
---|---|
void |
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. |
IJavaElement[] |
getElements()
Returns the top level elements in this region. |
boolean |
remove(IJavaElement element)
Removes the specified element from the region and returns true if successful, false if the remove
fails. |
java.lang.String |
toString()
Returns a printable representation of this region. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public Region()
IRegion
Method Detail |
---|
public void add(IJavaElement element)
IRegion
add
in interface IRegion
element
- the given elementIRegion.add(IJavaElement)
public boolean contains(IJavaElement element)
IRegion
contains
in interface IRegion
element
- the given element
IRegion
public IJavaElement[] getElements()
IRegion
getElements
in interface IRegion
IRegion
public boolean remove(IJavaElement element)
IRegion
true
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).
remove
in interface IRegion
element
- the given element
true
if successful, false
if the remove failsIRegion.remove(IJavaElement)
public java.lang.String toString()
toString
in class java.lang.Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |