- Sort Score
- Num 10 results
- Language All
Results 1 - 8 of 8 for MethodDesc (0.19 seconds)
-
src/main/java/org/codelibs/core/beans/MethodDesc.java
package org.codelibs.core.beans; import java.lang.reflect.Method; import java.util.Collection; import java.util.Map; /** * Interface for handling methods. * * @author koichik */ public interface MethodDesc { /** * Returns the {@link BeanDesc} of the class that owns this method. * * @return {@link BeanDesc} */ BeanDesc getBeanDesc(); /** * Returns the method.Created: Fri Apr 03 20:58:12 GMT 2026 - Last Modified: Sat May 10 01:32:17 GMT 2025 - 5.9K bytes - Click Count (0) -
src/main/java/org/codelibs/core/beans/BeanDesc.java
* constructorDesc.newInstance(...); // Create an instance of Foo * } * * for (String methodName : beanDesc.getMethodNames()) { * for (MethodDesc methodDesc : beanDesc.getMethodDescs(methodName)) { * methodDesc.invoke(foo, ...); // Invoke Foo's method * } * } * </pre> * * @author higa * @see BeanDescFactory */ public interface BeanDesc { /**
Created: Fri Apr 03 20:58:12 GMT 2026 - Last Modified: Thu Jul 24 01:52:43 GMT 2025 - 7.9K bytes - Click Count (0) -
src/main/java/org/codelibs/core/beans/impl/BeanDescImpl.java
* @return a {@link MethodDesc} that matches the arguments, or {@literal null} if none exists */ protected MethodDesc findSuitableMethodDescAdjustNumber(final MethodDesc[] methodDescs, final Object[] args) { for (final MethodDesc methodDesc : methodDescs) { if (isSuitable(methodDesc.getParameterTypes(), args, true)) { return methodDesc; } }Created: Fri Apr 03 20:58:12 GMT 2026 - Last Modified: Thu Jun 19 09:12:22 GMT 2025 - 25.8K bytes - Click Count (1) -
src/test/java/org/codelibs/core/beans/impl/BeanDescImplTest.java
final BeanDesc beanDesc = new BeanDescImpl(MyBean.class); MethodDesc methodDesc = beanDesc.getMethodDescNoException("getAaa"); assertThat(methodDesc, is(notNullValue())); assertThat(methodDesc.getMethodName(), is("getAaa")); methodDesc = beanDesc.getMethodDescNoException("getaaa"); assertThat(methodDesc, is(nullValue())); } /** * @throws Exception */
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/main/java/org/codelibs/core/lang/AnnotationUtil.java
*/ protected static Object getProperty(final BeanDesc beanDesc, final Annotation annotation, final String name) { final MethodDesc methodDesc = beanDesc.getMethodDescNoException(name); if (methodDesc == null) { return null; } final Object value = methodDesc.invoke(annotation); if (value == null || "".equals(value)) { return null; } return value; }Created: Fri Apr 03 20:58:12 GMT 2026 - Last Modified: Thu Jul 31 08:16:49 GMT 2025 - 2.6K bytes - Click Count (0) -
src/test/java/org/codelibs/core/beans/impl/MethodDescTest.java
import static org.hamcrest.CoreMatchers.notNullValue; import static org.hamcrest.CoreMatchers.sameInstance; import static org.junit.Assert.assertThat; import org.codelibs.core.beans.BeanDesc; import org.codelibs.core.beans.MethodDesc; import org.codelibs.core.exception.MethodNotStaticRuntimeException; import org.junit.Test; /** * @author koichik * */ public class MethodDescTest { /** * @throws Exception */Created: Fri Apr 03 20:58:12 GMT 2026 - Last Modified: Sat May 10 01:32:17 GMT 2025 - 3.4K bytes - Click Count (0) -
src/main/java/org/codelibs/core/beans/factory/ParameterizedClassDescFactory.java
* @see BeanDesc#getTypeVariables() * @see PropertyDesc#getParameterizedClassDesc() * @see FieldDesc#getParameterizedClassDesc() * @see ConstructorDesc#getParameterizedClassDescs() * @see MethodDesc#getParameterizedClassDesc() * @see MethodDesc#getParameterizedClassDescs() */ public abstract class ParameterizedClassDescFactory { /** * Do not instantiate. */ protected ParameterizedClassDescFactory() { }Created: Fri Apr 03 20:58:12 GMT 2026 - Last Modified: Thu Jul 31 08:16:49 GMT 2025 - 7.7K bytes - Click Count (0) -
src/main/java/org/codelibs/core/beans/impl/MethodDescImpl.java
import org.codelibs.core.beans.BeanDesc; import org.codelibs.core.beans.MethodDesc; import org.codelibs.core.beans.ParameterizedClassDesc; import org.codelibs.core.beans.factory.ParameterizedClassDescFactory; import org.codelibs.core.exception.MethodNotStaticRuntimeException; import org.codelibs.core.lang.MethodUtil; /** * Implementation class of {@link MethodDesc}. * * @author koichik */Created: Fri Apr 03 20:58:12 GMT 2026 - Last Modified: Sat May 10 01:32:17 GMT 2025 - 7.3K bytes - Click Count (1)