Skip to content

Commit db7d55e

Browse files
committed
replace with English javadoc
1 parent 7258a87 commit db7d55e

20 files changed

+387
-398
lines changed

src/main/java/org/codelibs/core/beans/BeanDesc.java

+70-70
Original file line numberDiff line numberDiff line change
@@ -23,34 +23,34 @@
2323
import org.codelibs.core.beans.factory.BeanDescFactory;
2424

2525
/**
26-
* JavaBeansのメタデータを扱うためのインターフェースです。
26+
* Interface for handling JavaBeans metadata.
2727
* <p>
28-
* {@link BeanDesc}のインスタンスは{@link BeanDescFactory}から取得します。
28+
* Instances of {@link BeanDesc} are obtained from {@link BeanDescFactory}.
2929
* </p>
3030
*
3131
* <pre>
3232
* BeanDesc beanDesc = BeanDescFactory.getBeanDesc(Foo.class);
3333
* </pre>
3434
* <p>
35-
* 取得した{@link BeanDesc}から,対象となるJavaBeansのプロパティやフィールド、コンストラクタ、メソッドのメタデータを取得できます。
35+
* From the obtained {@link BeanDesc}, you can retrieve metadata of the properties, fields, constructors, and methods of the target JavaBeans.
3636
* </p>
3737
*
3838
* <pre>
3939
* for (PropertyDesc propertyDesc : beanDesc.getPropertyDescs()) {
40-
* propertyDesc.getValue(foo); // Foo のプロパティの値を取得
40+
* propertyDesc.getValue(foo); // Retrieve the value of Foo's property
4141
* }
4242
*
4343
* for (FieldDesc fieldDesc : beanDesc.getFieldDescs()) {
44-
* fieldDesc.getFileldValue(foo); // Foo のフィールドの値を取得
44+
* fieldDesc.getFieldValue(foo); // Retrieve the value of Foo's field
4545
* }
4646
*
4747
* for (ConstructorDesc constructorDesc : beanDesc.getConstructorDescs()) {
48-
* constructorDesc.newInstance(...); // Foo のインスタンスを生成
48+
* constructorDesc.newInstance(...); // Create an instance of Foo
4949
* }
5050
*
5151
* for (String methodName : beanDesc.getMethodNames()) {
5252
* for (MethodDesc methodDesc : beanDesc.getMethodDescs(methodName)) {
53-
* methodDesc.invoke(foo, ...); // Foo のメソッドを起動
53+
* methodDesc.invoke(foo, ...); // Invoke Foo's method
5454
* }
5555
* }
5656
* </pre>
@@ -61,210 +61,210 @@
6161
public interface BeanDesc {
6262

6363
/**
64-
* Beanのクラスを返します。
64+
* Returns the class of the Bean.
6565
*
6666
* @param <T>
67-
* Beanのクラス
68-
* @return Beanのクラス
67+
* The class of the Bean
68+
* @return The class of the Bean
6969
*/
7070
<T> Class<T> getBeanClass();
7171

7272
/**
73-
* 型変数から型引数へのマップを返します。
73+
* Returns a map from type variables to type arguments.
7474
*
75-
* @return 型変数から型引数へのマップ
75+
* @return A map from type variables to type arguments
7676
*/
7777
Map<TypeVariable<?>, Type> getTypeVariables();
7878

7979
/**
80-
* {@link PropertyDesc}を持っているかどうかを返します。
80+
* Returns whether the {@link PropertyDesc} exists.
8181
*
8282
* @param propertyName
83-
* プロパティ名。{@literal null}や空文字列であってはいけません
84-
* @return {@link PropertyDesc}を持っているかどうか
83+
* The property name. Must not be {@literal null} or empty string
84+
* @return Whether the {@link PropertyDesc} exists
8585
*/
8686
boolean hasPropertyDesc(String propertyName);
8787

8888
/**
89-
* {@link PropertyDesc}を返します。
89+
* Returns the {@link PropertyDesc}.
9090
*
9191
* @param propertyName
92-
* プロパティ名。{@literal null}や空文字列であってはいけません
92+
* The property name. Must not be {@literal null} or empty string
9393
* @return {@link PropertyDesc}
9494
*/
9595
PropertyDesc getPropertyDesc(String propertyName);
9696

9797
/**
98-
* {@link PropertyDesc}を返します。
98+
* Returns the {@link PropertyDesc}.
9999
*
100100
* @param index
101-
* {@link PropertyDesc}のインデックス
101+
* The index of the {@link PropertyDesc}
102102
* @return {@link PropertyDesc}
103103
*/
104104
PropertyDesc getPropertyDesc(int index);
105105

106106
/**
107-
* {@link PropertyDesc}の数を返します。
107+
* Returns the number of {@link PropertyDesc}.
108108
*
109-
* @return {@link PropertyDesc}の数
109+
* @return The number of {@link PropertyDesc}
110110
*/
111111
int getPropertyDescSize();
112112

113113
/**
114-
* {@link PropertyDesc}の{@link Iterable}を返します。
114+
* Returns an {@link Iterable} of {@link PropertyDesc}.
115115
*
116-
* @return {@link PropertyDesc}の{@link Iterable}
116+
* @return An {@link Iterable} of {@link PropertyDesc}
117117
*/
118118
Iterable<PropertyDesc> getPropertyDescs();
119119

120120
/**
121-
* {@link FieldDesc}を持っているかどうかを返します。
121+
* Returns whether the {@link FieldDesc} exists.
122122
*
123123
* @param fieldName
124-
* フィールド名。{@literal null}や空文字列であってはいけません
125-
* @return {@link FieldDesc}を持っているかどうか
124+
* The field name. Must not be {@literal null} or empty string
125+
* @return Whether the {@link FieldDesc} exists
126126
*/
127127
boolean hasFieldDesc(String fieldName);
128128

129129
/**
130-
* {@link FieldDesc}を返します。
130+
* Returns the {@link FieldDesc}.
131131
*
132132
* @param fieldName
133-
* フィールド名。{@literal null}や空文字列であってはいけません
133+
* The field name. Must not be {@literal null} or empty string
134134
* @return {@link FieldDesc}
135135
*/
136136
FieldDesc getFieldDesc(String fieldName);
137137

138138
/**
139-
* {@link FieldDesc}を返します。
139+
* Returns the {@link FieldDesc}.
140140
*
141141
* @param index
142-
* {@link FieldDesc}のインデックス
142+
* The index of the {@link FieldDesc}
143143
* @return {@link FieldDesc}
144144
*/
145145
FieldDesc getFieldDesc(int index);
146146

147147
/**
148-
* {@link FieldDesc}の数を返します。
148+
* Returns the number of {@link FieldDesc}.
149149
*
150-
* @return {@link FieldDesc}の数
150+
* @return The number of {@link FieldDesc}
151151
*/
152152
int getFieldDescSize();
153153

154154
/**
155-
* {@link FieldDesc}の{@link Iterable}を返します。
155+
* Returns an {@link Iterable} of {@link FieldDesc}.
156156
*
157-
* @return {@link FieldDesc}の{@link Iterable}
157+
* @return An {@link Iterable} of {@link FieldDesc}
158158
*/
159159
Iterable<FieldDesc> getFieldDescs();
160160

161161
/**
162-
* 新しいインスタンスを作成します。
162+
* Creates a new instance.
163163
*
164164
* @param <T>
165-
* Beanクラスの型
165+
* The type of the Bean class
166166
* @param args
167-
* コンストラクタに渡す引数の並び
168-
* @return 新しいインスタンス
167+
* The arguments to pass to the constructor
168+
* @return A new instance
169169
*/
170170
<T> T newInstance(Object... args);
171171

172172
/**
173-
* 引数の型に応じた{@link ConstructorDesc}を返します。
173+
* Returns the {@link ConstructorDesc} for the given parameter types.
174174
*
175175
* @param paramTypes
176-
* コンストラクタに渡す引数型の並び
177-
* @return 引数の型に応じた{@link ConstructorDesc}
176+
* The array of parameter types for the constructor
177+
* @return The {@link ConstructorDesc} for the given parameter types
178178
*/
179179
ConstructorDesc getConstructorDesc(Class<?>... paramTypes);
180180

181181
/**
182-
* 引数に適合する{@link ConstructorDesc}を返します。
182+
* Returns the {@link ConstructorDesc} that matches the given arguments.
183183
*
184184
* @param args
185-
* コンストラクタに渡す引数の並び
186-
* @return 引数に適合する{@link Constructor}
185+
* The arguments to pass to the constructor
186+
* @return The {@link ConstructorDesc} that matches the given arguments
187187
*/
188188
ConstructorDesc getSuitableConstructorDesc(Object... args);
189189

190190
/**
191-
* {@link ConstructorDesc}を返します。
191+
* Returns the {@link ConstructorDesc}.
192192
*
193193
* @param index
194-
* {@link ConstructorDesc}のインデックス
194+
* The index of the {@link ConstructorDesc}
195195
* @return {@link ConstructorDesc}
196196
*/
197197
ConstructorDesc getConstructorDesc(int index);
198198

199199
/**
200-
* {@link ConstructorDesc}の数を返します。
200+
* Returns the number of {@link ConstructorDesc}.
201201
*
202-
* @return {@link ConstructorDesc}の数
202+
* @return The number of {@link ConstructorDesc}
203203
*/
204204
int getConstructorDescSize();
205205

206206
/**
207-
* {@link ConstructorDesc}の{@link Iterable}を返します。
207+
* Returns an {@link Iterable} of {@link ConstructorDesc}.
208208
*
209-
* @return {@link ConstructorDesc}の{@link Iterable}
209+
* @return An {@link Iterable} of {@link ConstructorDesc}
210210
*/
211211
Iterable<ConstructorDesc> getConstructorDescs();
212212

213213
/**
214-
* 引数の型に応じた{@link MethodDesc}を返します。
214+
* Returns the {@link MethodDesc} for the given parameter types.
215215
*
216216
* @param methodName
217-
* メソッド名。{@literal null}や空文字列であってはいけません
217+
* The method name. Must not be {@literal null} or empty string
218218
* @param paramTypes
219-
* メソッドの引数型の並び
220-
* @return 引数の型に応じた{@link MethodDesc} メソッド
219+
* The array of parameter types for the method
220+
* @return The {@link MethodDesc} for the given parameter types
221221
*/
222222
MethodDesc getMethodDesc(String methodName, Class<?>... paramTypes);
223223

224224
/**
225-
* 引数の型に応じた{@link MethodDesc}を返します。見つからない場合は、{@literal null}を返します。
225+
* Returns the {@link MethodDesc} that matches the given parameter types. If not found, returns {@literal null}.
226226
*
227227
* @param methodName
228-
* メソッド名。{@literal null}や空文字列であってはいけません
228+
* The method name. Must not be {@literal null} or empty string
229229
* @param paramTypes
230-
* メソッドの引数型の並び
231-
* @return 引数の型に応じた{@link MethodDesc}
230+
* The array of parameter types for the method
231+
* @return The {@link MethodDesc} that matches the given parameter types
232232
*/
233233
MethodDesc getMethodDescNoException(String methodName, Class<?>... paramTypes);
234234

235235
/**
236-
* 引数に適合する{@link MethodDesc}を返します。
236+
* Returns the {@link MethodDesc} that matches the given arguments.
237237
*
238238
* @param methodName
239-
* メソッド名。{@literal null}や空文字列であってはいけません
239+
* The method name. Must not be {@literal null} or empty string
240240
* @param args
241-
* メソッドの引数の並び
242-
* @return 引数に適合する{@link MethodDesc} メソッド
241+
* The array of arguments for the method
242+
* @return The {@link MethodDesc} that matches the given arguments
243243
*/
244244
MethodDesc getSuitableMethodDesc(String methodName, Object... args);
245245

246246
/**
247-
* {@link MethodDesc}があるかどうか返します。
247+
* Returns whether the {@link MethodDesc} exists.
248248
*
249249
* @param methodName
250-
* メソッド名。{@literal null}や空文字列であってはいけません
251-
* @return {@link MethodDesc}があるかどうか
250+
* The method name. Must not be {@literal null} or empty string
251+
* @return Whether the {@link MethodDesc} exists
252252
*/
253253
boolean hasMethodDesc(String methodName);
254254

255255
/**
256-
* {@link MethodDesc}の配列を返します。
256+
* Returns an array of {@link MethodDesc}.
257257
*
258258
* @param methodName
259-
* メソッド名。{@literal null}や空文字列であってはいけません
260-
* @return {@link MethodDesc}の配列
259+
* The method name. Must not be {@literal null} or empty string
260+
* @return An array of {@link MethodDesc}
261261
*/
262262
MethodDesc[] getMethodDescs(String methodName);
263263

264264
/**
265-
* メソッド名の配列を返します。
265+
* Returns an array of method names.
266266
*
267-
* @return メソッド名の配列
267+
* @return An array of method names
268268
*/
269269
String[] getMethodNames();
270270

0 commit comments

Comments
 (0)