- Sort Score
- Result 10 results
- Languages All
Results 1 - 3 of 3 for getStaticFieldValue (0.23 sec)
-
src/test/java/org/codelibs/core/beans/impl/FieldDescImplTest.java
assertThat(parameterizedClassDesc, is(notNullValue())); assertThat(hoge.getParameterizedClassDesc().isParameterizedClass(), is(not(true))); assertThat(hoge.getStaticFieldValue(), is((Object) "hoge")); } /** * @throws Exception */ @Test public void testAaa() throws Exception { final BeanDesc beanDesc = new BeanDescImpl(MyBean.class);
Registered: Wed Jun 12 12:50:12 UTC 2024 - Last Modified: Thu Mar 07 01:59:08 UTC 2024 - 5K bytes - Viewed (0) -
src/main/java/org/codelibs/core/beans/impl/FieldDescImpl.java
public <T> T getFieldValue(final Object target) { assertArgumentNotNull("target", target); return FieldUtil.get(field, target); } @Override public <T> T getStaticFieldValue() { if (!isStatic()) { throw new FieldNotStaticRuntimeException(beanDesc.getBeanClass(), fieldName); } return FieldUtil.get(field); } @Override
Registered: Wed Jun 12 12:50:12 UTC 2024 - Last Modified: Thu Mar 07 01:59:08 UTC 2024 - 5.2K bytes - Viewed (0) -
src/main/java/org/codelibs/core/beans/FieldDesc.java
<T> T getFieldValue(Object target); /** * staticな{@link Field}の値を返します。 * * @param <T> * フィールドの型 * @return {@link Field}の値 */ <T> T getStaticFieldValue(); /** * {@link Field}の値を設定します。 * * @param target * 対象のオブジェクト。{@literal null}であってはいけません * @param value * {@link Field}の値 */
Registered: Wed Jun 12 12:50:12 UTC 2024 - Last Modified: Thu Mar 07 01:59:08 UTC 2024 - 4.5K bytes - Viewed (0)