- Sort Score
- Num 10 results
- Language All
Results 11 - 20 of 35 for setField (0.05 seconds)
The search processing time has exceeded the limit. The displayed results may be partial.
-
src/test/java/org/codelibs/core/lang/ClassUtilTest.java
ClassUtil.forName(""); } /** * @throws Exception */ @Test(expected = EmptyArgumentException.class) public void testGetField_EmptyName() throws Exception { ClassUtil.getField(getClass(), ""); } /** * @throws Exception */ @Test(expected = EmptyArgumentException.class) public void testGetMethod_EmptyName() throws Exception {
Created: Fri Apr 03 20:58:12 GMT 2026 - Last Modified: Sat May 10 01:32:17 GMT 2025 - 6.2K bytes - Click Count (0) -
guava/src/com/google/common/base/Enums.java
* Description} annotation on the {@code GOLF} constant of enum {@code Sport}, use {@code * Enums.getField(Sport.GOLF).getAnnotation(Description.class)}. * * @since 12.0 */ public static Field getField(Enum<?> enumValue) { Class<?> clazz = enumValue.getDeclaringClass(); try { return clazz.getDeclaredField(enumValue.name());Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Tue Jul 01 13:41:58 GMT 2025 - 4.8K bytes - Click Count (0) -
src/test/java/jcifs/internal/smb1/net/NetShareEnumTest.java
} } private void setFieldValue(Object obj, String fieldName, Object value) throws Exception { Field field = getField(obj.getClass(), fieldName); field.setAccessible(true); field.set(obj, value); } private Field getField(Class<?> clazz, String fieldName) throws NoSuchFieldException { while (clazz != null) { try {Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 15.8K bytes - Click Count (0) -
guava-tests/test/com/google/common/base/EnumsTest.java
@ExampleAnnotation FOO, BAR } @J2ktIncompatible public void testGetField() { Field foo = Enums.getField(AnEnum.FOO); assertThat(foo.getName()).isEqualTo("FOO"); assertTrue(foo.isAnnotationPresent(ExampleAnnotation.class)); Field bar = Enums.getField(AnEnum.BAR); assertThat(bar.getName()).isEqualTo("BAR"); assertFalse(bar.isAnnotationPresent(ExampleAnnotation.class)); }Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Fri Mar 13 01:05:11 GMT 2026 - 8.4K bytes - Click Count (0) -
android/guava-tests/test/com/google/common/base/EnumsTest.java
@ExampleAnnotation FOO, BAR } @J2ktIncompatible public void testGetField() { Field foo = Enums.getField(AnEnum.FOO); assertThat(foo.getName()).isEqualTo("FOO"); assertTrue(foo.isAnnotationPresent(ExampleAnnotation.class)); Field bar = Enums.getField(AnEnum.BAR); assertThat(bar.getName()).isEqualTo("BAR"); assertFalse(bar.isAnnotationPresent(ExampleAnnotation.class)); }Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Fri Mar 13 01:05:11 GMT 2026 - 8.4K bytes - Click Count (0) -
android/guava/src/com/google/common/io/TempFileCreator.java
// Try another way. } try { int version = (int) Class.forName("android.os.Build$VERSION").getField("SDK_INT").get(null); int jellyBean = (int) Class.forName("android.os.Build$VERSION_CODES").getField("JELLY_BEAN").get(null); /* * I assume that this check can't fail because JELLY_BEAN will be present only if we'reCreated: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Mon Sep 29 18:50:14 GMT 2025 - 11.8K bytes - Click Count (0) -
src/test/java/org/codelibs/core/beans/impl/BeanDescImplTest.java
assertThat(propDesc.getReadMethod(), is(notNullValue())); assertThat(propDesc.getWriteMethod(), is(nullValue())); assertThat(propDesc.getField(), is(notNullValue())); propDesc = beanDesc.getPropertyDesc("CCC"); assertThat(propDesc.getPropertyName(), is("CCC")); assertThat(propDesc.getPropertyType(), is(sameClass(boolean.class)));
Created: Fri Apr 03 20:58:12 GMT 2026 - Last Modified: Fri Jun 20 13:40:57 GMT 2025 - 13.9K bytes - Click Count (0) -
src/test/java/org/codelibs/core/beans/factory/ParameterizedClassDescFactoryTest.java
*/ @Test public void testFieldType() throws Exception { final Map<TypeVariable<?>, Type> map = ParameterizedClassDescFactory.getTypeVariables(Hoge.class); final Field field = Hoge.class.getField("foo"); final ParameterizedClassDesc desc = ParameterizedClassDescFactory.createParameterizedClassDesc(field, map); assertThat(desc.getRawClass(), is(sameClass(Map.class)));Created: Fri Apr 03 20:58:12 GMT 2026 - Last Modified: Sat May 10 01:32:17 GMT 2025 - 4.4K bytes - Click Count (0) -
src/main/java/org/codelibs/core/beans/FieldDesc.java
* * @return {@link BeanDesc} */ BeanDesc getBeanDesc(); /** * Returns the field. * * @return the field */ Field getField(); /** * Returns the field name. * * @return the field name */ String getFieldName(); /** * Returns the type of the field. * * @param <T>Created: Fri Apr 03 20:58:12 GMT 2026 - Last Modified: Sat May 10 01:32:17 GMT 2025 - 4K bytes - Click Count (0) -
src/main/java/org/codelibs/core/beans/PropertyDesc.java
*/ boolean isWritable(); /** * Returns the public field recognized as a property. * * @return the public field recognized as a property */ Field getField(); /** * Returns the property value. * * @param <T> * the property type * @param target * the target object. Must not be {@literal null}Created: Fri Apr 03 20:58:12 GMT 2026 - Last Modified: Sat May 10 01:32:17 GMT 2025 - 4.3K bytes - Click Count (0)