View | Details | Raw Unified | Return to bug 316330
Collapse All | Expand All

(-)src/org/eclipse/wst/jsdt/internal/compiler/lookup/ArrayBinding.java (-11 / +31 lines)
Lines 1-5 Link Here
1
/*******************************************************************************
1
/*******************************************************************************
2
 * Copyright (c) 2000, 2009 IBM Corporation and others.
2
 * Copyright (c) 2000, 2010 IBM Corporation and others.
3
 * All rights reserved. This program and the accompanying materials
3
 * All rights reserved. This program and the accompanying materials
4
 * are made available under the terms of the Eclipse Public License v1.0
4
 * are made available under the terms of the Eclipse Public License v1.0
5
 * which accompanies this distribution, and is available at
5
 * which accompanies this distribution, and is available at
Lines 199-240 Link Here
199
}
199
}
200
200
201
public FieldBinding[] availableFields() {
201
public FieldBinding[] availableFields() {
202
	return referenceBinding.availableFields();
202
	if(referenceBinding != null)
203
		return referenceBinding.availableFields();
204
	return new FieldBinding[0];
203
}
205
}
204
206
205
public MethodBinding[] availableMethods() {
207
public MethodBinding[] availableMethods() {
206
	return referenceBinding.availableMethods();
208
	if(referenceBinding != null)
209
		return referenceBinding.availableMethods();
210
	return new MethodBinding[0];
207
}
211
}
208
212
209
public int fieldCount() {
213
public int fieldCount() {
210
	return referenceBinding.fieldCount();
214
	if(referenceBinding != null)
215
		return referenceBinding.fieldCount();
216
	return 0;
211
}
217
}
212
218
213
public FieldBinding[] fields() {
219
public FieldBinding[] fields() {
214
	return referenceBinding.fields();
220
	if(referenceBinding != null)
221
		return referenceBinding.fields();
222
	return new FieldBinding[0];
215
}
223
}
216
224
217
public InferredType getInferredType() {
225
public InferredType getInferredType() {
218
	return referenceBinding.getInferredType();
226
	if(referenceBinding != null)
227
		return referenceBinding.getInferredType();
228
	return null;
219
}
229
}
220
230
221
public MethodBinding[] getMethods(char[] selector) {
231
public MethodBinding[] getMethods(char[] selector) {
222
	return referenceBinding.getMethods(selector);
232
	if(referenceBinding != null)
233
		return referenceBinding.getMethods(selector);
234
	return new MethodBinding[0];
223
}
235
}
224
236
225
boolean implementsMethod(MethodBinding method) {
237
boolean implementsMethod(MethodBinding method) {
226
	return referenceBinding.implementsMethod(method);
238
	if(referenceBinding != null)
239
		return referenceBinding.implementsMethod(method);
240
	return false;
227
}
241
}
228
242
229
public MethodBinding[] methods() {
243
public MethodBinding[] methods() {
230
	return referenceBinding.methods();
244
	if(referenceBinding != null)
245
		return referenceBinding.methods();
246
	return new MethodBinding[0];
231
}
247
}
232
public MethodBinding getExactMethod(char[] selector, TypeBinding[] argumentTypes, CompilationUnitScope refScope) {
248
public MethodBinding getExactMethod(char[] selector, TypeBinding[] argumentTypes, CompilationUnitScope refScope) {
233
	return referenceBinding.getExactMethod(selector, argumentTypes, refScope);
249
	if(referenceBinding != null)
250
		return referenceBinding.getExactMethod(selector, argumentTypes, refScope);
251
	return null;
234
}
252
}
235
253
236
public FieldBinding getField(char[] fieldName, boolean needResolve) {
254
public FieldBinding getField(char[] fieldName, boolean needResolve) {
237
	return referenceBinding.getField(fieldName, needResolve);
255
	if(referenceBinding != null)
256
		return referenceBinding.getField(fieldName, needResolve);
257
	return null;
238
}
258
}
239
259
240
}
260
}

Return to bug 316330