You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@commons.apache.org by di...@apache.org on 2006/05/01 05:34:36 UTC
svn commit: r398509 -
/jakarta/commons/proper/jexl/trunk/src/java/org/apache/commons/jexl/util/introspection/UberspectImpl.java
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.
+ * {@inheritDoc}
*/
public Object invoke(Object o, Object[] params) throws Exception {
try {
@@ -246,60 +242,95 @@
}
}
+ /**
+ * {@inheritDoc}
+ */
public boolean isCacheable() {
return true;
}
+ /**
+ * {@inheritDoc}
+ */
public String getMethodName() {
return method.getName();
}
+ /**
+ * {@inheritDoc}
+ */
public Class getReturnType() {
return method.getReturnType();
}
}
+ /**
+ * {@inheritDoc}
+ */
public class VelGetterImpl implements VelPropertyGet {
- AbstractExecutor ae = null;
+ /** executor for performing the get. */
+ protected AbstractExecutor ae = null;
+ /**
+ * Create the getter using an {@link AbstractExecutor} to
+ * do the work.
+ * @param exec the executor.
+ */
public VelGetterImpl(AbstractExecutor exec) {
ae = exec;
}
- private VelGetterImpl() {
- }
-
+ /**
+ * {@inheritDoc}
+ */
public Object invoke(Object o) throws Exception {
return ae.execute(o);
}
+ /**
+ * {@inheritDoc}
+ */
public boolean isCacheable() {
return true;
}
+ /**
+ * {@inheritDoc}
+ */
public String getMethodName() {
return ae.getMethod().getName();
}
-
}
+ /**
+ * {@inheritDoc}
+ */
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() {
- }
-
+ /** {@inheritDoc} */
public Object invoke(Object o, Object value) throws Exception {
ArrayList al = new ArrayList();
@@ -313,10 +344,12 @@
return vm.invoke(o, al.toArray());
}
+ /** {@inheritDoc} */
public boolean isCacheable() {
return true;
}
+ /** {@inheritDoc} */
public String getMethodName() {
return vm.getMethodName();
}
---------------------------------------------------------------------
To unsubscribe, e-mail: commons-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-dev-help@jakarta.apache.org