Eclipse JDT
Release 3.1

org.eclipse.jdt.ui.search
Class ElementQuerySpecification

java.lang.Object
  extended byorg.eclipse.jdt.ui.search.QuerySpecification
      extended byorg.eclipse.jdt.ui.search.ElementQuerySpecification

public class ElementQuerySpecification
extends QuerySpecification

Describes a search query by giving the IJavaElement to search for.

This class is not intended to be instantiated or subclassed by clients.

Since:
3.0
See Also:
QuerySpecification

Constructor Summary
ElementQuerySpecification(IJavaElement javaElement, int limitTo, IJavaSearchScope scope, String scopeDescription)
          A constructor.
 
Method Summary
 IJavaElement getElement()
          Returns the element to search for.
 
Methods inherited from class org.eclipse.jdt.ui.search.QuerySpecification
getLimitTo, getScope, getScopeDescription
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ElementQuerySpecification

public ElementQuerySpecification(IJavaElement javaElement,
                                 int limitTo,
                                 IJavaSearchScope scope,
                                 String scopeDescription)
A constructor.

Parameters:
javaElement - The java element the query should search for.
limitTo - The kind of occurrence the query should search for.
scope - The scope to search in.
scopeDescription - A human readable description of the search scope.
Method Detail

getElement

public IJavaElement getElement()
Returns the element to search for.

Returns:
The element to search for.

Eclipse JDT
Release 3.1

Copyright (c) IBM Corp. and others 2000, 2005. All Rights Reserved.