|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface IRegion
A JavaScript model region describes a hierarchical set of elements. Regions are often used to describe a set of elements to be considered when performing operations; for example, the set of elements to be considered during a search. A region may include elements from different projects.
When an element is included in a region, all of its children are considered to be included. Children of an included element cannot be selectively excluded.
This interface is not intended to be implemented by clients.
Instances can be created via the JavaScriptCore.newRegion
.
Provisional API: This class/interface is part of an interim API that is still under development and expected to
change significantly before reaching stability. It is being made available at this early stage to solicit feedback
from pioneering adopters on the understanding that any code that uses this API will almost certainly be broken
(repeatedly) as the API evolves.
Method Summary | |
---|---|
void |
add(IJavaScriptElement element)
Adds the given element and all of its descendents to this region. |
boolean |
contains(IJavaScriptElement element)
Returns whether the given element is contained in this region. |
IJavaScriptElement[] |
getElements()
Returns the top level elements in this region. |
boolean |
remove(IJavaScriptElement element)
Removes the specified element from the region and returns true if successful, false if the remove
fails. |
Method Detail |
---|
void add(IJavaScriptElement element)
element
- the given elementboolean contains(IJavaScriptElement element)
element
- the given element
IJavaScriptElement[] getElements()
boolean remove(IJavaScriptElement element)
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).
element
- the given element
true
if successful, false
if the remove fails
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |