View | Details | Raw Unified | Return to bug 120264 | Differences between
and this patch

Collapse All | Expand All

(-)dom/org/eclipse/jdt/core/dom/TypeBinding.java (+11 lines)
Lines 140-145 Link Here
140
	}
140
	}
141
141
142
	/*
142
	/*
143
	 * @see ITypeBinding#getComponentType()
144
	 */
145
	public ITypeBinding getComponentType() {
146
		if (!this.isArray()) {
147
			return null;
148
		}
149
		ArrayBinding arrayBinding = (ArrayBinding) binding;
150
		return resolver.getTypeBinding(arrayBinding.elementsType());
151
	}
152
153
	/*
143
	 * @see ITypeBinding#getDeclaredFields()
154
	 * @see ITypeBinding#getDeclaredFields()
144
	 */
155
	 */
145
	public IVariableBinding[] getDeclaredFields() {
156
	public IVariableBinding[] getDeclaredFields() {
(-)dom/org/eclipse/jdt/core/dom/ITypeBinding.java (+12 lines)
Lines 75-80 Link Here
75
	public ITypeBinding getBound();
75
	public ITypeBinding getBound();
76
76
77
	/**
77
	/**
78
	 * Returns the component type of this array type. The component type
79
	 * may be another array type.
80
	 * Returns the binding representing the component type of this array type,
81
	 * or <code>null</code> if this is not an array type binding. The component
82
	 * type of an array may be another array type.
83
	 * 
84
	 * @return the component type binding, or <code>null</code> if this is
85
	 *   not an array type
86
	 */ 
87
	public ITypeBinding getComponentType();
88
89
	/**
78
	 * Returns a list of bindings representing all the fields declared
90
	 * Returns a list of bindings representing all the fields declared
79
	 * as members of this class, interface, or enum type. These include public, 
91
	 * as members of this class, interface, or enum type. These include public, 
80
	 * protected, default (package-private) access, and private fields declared
92
	 * protected, default (package-private) access, and private fields declared

Return to bug 120264