Follow Techotopia on Twitter

On-line Guides
All Guides
eBook Store
iOS / Android
Linux for Beginners
Office Productivity
Linux Installation
Linux Security
Linux Utilities
Linux Virtualization
Linux Kernel
System/Network Admin
Programming
Scripting Languages
Development Tools
Web Development
GUI Toolkits/Desktop
Databases
Mail Systems
openSolaris
Eclipse Documentation
Techotopia.com
Virtuatopia.com

How To Guides
Virtualization
General System Admin
Linux Security
Linux Filesystems
Web Servers
Graphics & Desktop
PC Hardware
Windows
Problem Solutions
Privacy Policy

  




 

 


Eclipse JDT
Release 3.5

org.eclipse.jdt.ui.search
Class QuerySpecification

java.lang.Object
  extended by 
org.eclipse.jdt.ui.search.QuerySpecification
Direct Known Subclasses:
ElementQuerySpecification, PatternQuerySpecification

public abstract class QuerySpecification
extends Object

Describes a Java search query. A query is described by giving a scope, a scope description, what kind of match to search for (reference, declarations, etc) and either a Java element or a string and what kind of element to search for (type, field, etc). What exactly it means to, for example, to search for "references to type foo" is up to query participants. For example, a participant might consider the "class" attribute of an extension in a plugin.xml file to be a reference to the class mentioned in the attribute.

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

Since:
3.0
Restriction:
This class is not intended to be subclassed by clients.

Method Summary
 int getLimitTo ()
          Returns what kind of occurrences the query should look for.
  IJavaSearchScope getScope ()
          Returns the search scope to be used in the query.
  String getScopeDescription ()
          Returns a human readable description of the search scope.
 
Methods inherited from class java.lang. Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getScope

public 
IJavaSearchScope getScope()
Returns the search scope to be used in the query.

Returns:
The search scope.

getScopeDescription

public 
String getScopeDescription()
Returns a human readable description of the search scope.

Returns:
A description of the search scope.
See Also:
getScope()

getLimitTo

public int getLimitTo()
Returns what kind of occurrences the query should look for.

Returns:
Whether to search for reference, declaration, etc.
See Also:
IJavaSearchConstants

Eclipse JDT
Release 3.5

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

 
 
  Published under the terms of the Eclipse Public License Version 1.0 ("EPL") Design by Interspire