Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
Copyright (c) 2000, 2009 IBM Corporation and others. All rights reserved. This program and the accompanying materials are made available under the terms of the Eclipse Public License v1.0 which accompanies this distribution, and is available at http://www.eclipse.org/legal/epl-v10.html Contributors: IBM Corporation - initial API and implementation /
 
 package org.eclipse.jdt.internal.core;
 
 
 
 
 public class JavaElementRequestor implements IJavaElementRequestor {
True if this requestor no longer wants to receive results from its IRequestorNameLookup.
 
 	protected boolean canceledfalse;

A collection of the resulting fields, or null if no field results have been received.
 
 	protected ArrayList fieldsnull;

A collection of the resulting initializers, or null if no initializer results have been received.
 
 	protected ArrayList initializersnull;

A collection of the resulting member types, or null if no member type results have been received.
 
 	protected ArrayList memberTypesnull;

A collection of the resulting methods, or null if no method results have been received.
 
 	protected ArrayList methodsnull;

A collection of the resulting package fragments, or null if no package fragment results have been received.
 
 	protected ArrayList packageFragmentsnull;

A collection of the resulting types, or null if no type results have been received.
 
 	protected ArrayList typesnull;

Empty arrays used for efficiency
 
 	protected static final IField[] EMPTY_FIELD_ARRAYnew IField[0];
 	protected static final IInitializer[] EMPTY_INITIALIZER_ARRAYnew IInitializer[0];
 	protected static final IType[] EMPTY_TYPE_ARRAYnew IType[0];
 	protected static final IPackageFragment[] EMPTY_PACKAGE_FRAGMENT_ARRAYnew IPackageFragment[0];
 	protected static final IMethod[] EMPTY_METHOD_ARRAYnew IMethod[0];
 
 public void acceptField(IField field) {
 	if (this. == null) {
 		this.new ArrayList();
 	}
 	this..add(field);
 }
 
 public void acceptInitializer(IInitializer initializer) {
 	if (this. == null) {
 		this.new ArrayList();
 	}
 	this..add(initializer);
 }
 
 public void acceptMemberType(IType type) {
 	if (this. == null) {
 		this.new ArrayList();
	}
	this..add(type);
public void acceptMethod(IMethod method) {
	if (this. == null) {
		this. = new ArrayList();
	}
	this..add(method);
public void acceptPackageFragment(IPackageFragment packageFragment) {
	if (this.== null) {
	}
	this..add(packageFragment);
public void acceptType(IType type) {
	if (this. == null) {
		this.new ArrayList();
	}
	this..add(type);
public IField[] getFields() {
	if (this. == null) {
	}
	int size = this..size();
	IField[] results = new IField[size];
	this..toArray(results);
	return results;
	if (this. == null) {
	}
	int size = this..size();
	IInitializer[] results = new IInitializer[size];
	this..toArray(results);
	return results;
public IType[] getMemberTypes() {
	if (this. == null) {
	}
	int size = this..size();
	IType[] results = new IType[size];
	this..toArray(results);
	return results;
public IMethod[] getMethods() {
	if (this. == null) {
	}
	int size = this..size();
	IMethod[] results = new IMethod[size];
	this..toArray(results);
	return results;
	if (this.== null) {
	}
	int size = this..size();
	IPackageFragment[] results = new IPackageFragment[size];
	return results;
public IType[] getTypes() {
	if (this.== null) {
	}
	int size = this..size();
	IType[] results = new IType[size];
	this..toArray(results);
	return results;
public boolean isCanceled() {
	return this.;
Reset the state of this requestor.
public void reset() {
	this. = false;
	this. = null;
	this. = null;
	this. = null;
	this. = null;
	this. = null;
	this. = null;
Sets the #isCanceled state of this requestor to true or false.
public void setCanceled(boolean b) {
	this.b;
New to GrepCode? Check out our FAQ X