Author: dion Date: Sun Apr 30 20:34:35 2006 New Revision: 398509 URL: http://svn.apache.org/viewcvs?rev=398509&view=rev Log: Checkstyle
Modified: jakarta/commons/proper/jexl/trunk/src/java/org/apache/commons/jexl/util/introspection/UberspectImpl.java Modified: jakarta/commons/proper/jexl/trunk/src/java/org/apache/commons/jexl/util/introspection/UberspectImpl.java URL: http://svn.apache.org/viewcvs/jakarta/commons/proper/jexl/trunk/src/java/org/apache/commons/jexl/util/introspection/UberspectImpl.java?rev=398509&r1=398508&r2=398509&view=diff ============================================================================== --- jakarta/commons/proper/jexl/trunk/src/java/org/apache/commons/jexl/util/introspection/UberspectImpl.java (original) +++ jakarta/commons/proper/jexl/trunk/src/java/org/apache/commons/jexl/util/introspection/UberspectImpl.java Sun Apr 30 20:34:35 2006 @@ -224,11 +224,7 @@ } /** - * Invoke the method on the object. - * @param o the object - * @param params method parameters. - * @return the result - * @throws Exception on any error. + * [EMAIL PROTECTED] */ public Object invoke(Object o, Object[] params) throws Exception { try { @@ -246,60 +242,95 @@ } } + /** + * [EMAIL PROTECTED] + */ public boolean isCacheable() { return true; } + /** + * [EMAIL PROTECTED] + */ public String getMethodName() { return method.getName(); } + /** + * [EMAIL PROTECTED] + */ public Class getReturnType() { return method.getReturnType(); } } + /** + * [EMAIL PROTECTED] + */ public class VelGetterImpl implements VelPropertyGet { - AbstractExecutor ae = null; + /** executor for performing the get. */ + protected AbstractExecutor ae = null; + /** + * Create the getter using an [EMAIL PROTECTED] AbstractExecutor} to + * do the work. + * @param exec the executor. + */ public VelGetterImpl(AbstractExecutor exec) { ae = exec; } - private VelGetterImpl() { - } - + /** + * [EMAIL PROTECTED] + */ public Object invoke(Object o) throws Exception { return ae.execute(o); } + /** + * [EMAIL PROTECTED] + */ public boolean isCacheable() { return true; } + /** + * [EMAIL PROTECTED] + */ public String getMethodName() { return ae.getMethod().getName(); } - } + /** + * [EMAIL PROTECTED] + */ public class VelSetterImpl implements VelPropertySet { - VelMethod vm = null; - - String putKey = null; - + /** the method to call. */ + protected VelMethod vm = null; + /** the key for indexed and other properties. */ + protected String putKey = null; + + /** + * Create an instance. + * @param velmethod the method to call on set. + */ public VelSetterImpl(VelMethod velmethod) { this.vm = velmethod; } + /** + * Create an instance. + * @param velmethod the method to call on set. + * @param key the index or other value passed to a + * setProperty(xxx, value) method. + */ public VelSetterImpl(VelMethod velmethod, String key) { this.vm = velmethod; putKey = key; } - private VelSetterImpl() { - } - + /** [EMAIL PROTECTED] */ public Object invoke(Object o, Object value) throws Exception { ArrayList al = new ArrayList(); @@ -313,10 +344,12 @@ return vm.invoke(o, al.toArray()); } + /** [EMAIL PROTECTED] */ public boolean isCacheable() { return true; } + /** [EMAIL PROTECTED] */ public String getMethodName() { return vm.getMethodName(); } --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]