freemarker-notifications mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ddek...@apache.org
Subject [5/9] incubator-freemarker git commit: FREEMARKER-55: adding calling example in javadoc reference.
Date Thu, 14 Sep 2017 09:14:14 GMT
FREEMARKER-55: adding calling example in javadoc reference.


Project: http://git-wip-us.apache.org/repos/asf/incubator-freemarker/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-freemarker/commit/3c25f7ae
Tree: http://git-wip-us.apache.org/repos/asf/incubator-freemarker/tree/3c25f7ae
Diff: http://git-wip-us.apache.org/repos/asf/incubator-freemarker/diff/3c25f7ae

Branch: refs/heads/3
Commit: 3c25f7ae5245b4d41379bc274193daaf0553ca25
Parents: a95c17f
Author: Woonsan Ko <woonsan@apache.org>
Authored: Wed Sep 13 21:23:22 2017 -0400
Committer: Woonsan Ko <woonsan@apache.org>
Committed: Wed Sep 13 21:23:22 2017 -0400

----------------------------------------------------------------------
 .../freemarker/core/util/CallableUtils.java       | 18 ++++++++++++------
 1 file changed, 12 insertions(+), 6 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-freemarker/blob/3c25f7ae/freemarker-core/src/main/java/org/apache/freemarker/core/util/CallableUtils.java
----------------------------------------------------------------------
diff --git a/freemarker-core/src/main/java/org/apache/freemarker/core/util/CallableUtils.java
b/freemarker-core/src/main/java/org/apache/freemarker/core/util/CallableUtils.java
index 8f53df1..e0d371f 100644
--- a/freemarker-core/src/main/java/org/apache/freemarker/core/util/CallableUtils.java
+++ b/freemarker-core/src/main/java/org/apache/freemarker/core/util/CallableUtils.java
@@ -736,7 +736,8 @@ public final class CallableUtils {
 
     /**
      * Convenience method to call
-     * {@link #unwrapAndCastArgumentValue(TemplateModel, int, Class, boolean, TemplateModel,
TemplateCallableModel, boolean)}.
+     * {@link #unwrapAndCastArgumentValue(TemplateModel, int, Class, boolean, Object, TemplateCallableModel,
boolean, ObjectWrapperAndUnwrapper)
+     * unwrapAndCastArgumentValue(args[argIndex], argIndex, type, false, null, callable,
true, objectWrapperAndUnwrapper)}.
      */
     public static <T> T getAndUnwrapArgument(
             TemplateModel[] args, int argIndex, Class<T> type, TemplateFunctionModel
callable,
@@ -748,7 +749,8 @@ public final class CallableUtils {
 
     /**
      * Convenience method to call
-     * {@link #unwrapAndCastArgumentValue(TemplateModel, int, Class, boolean, TemplateModel,
TemplateCallableModel, boolean)}.
+     * {@link #unwrapAndCastArgumentValue(TemplateModel, int, Class, boolean, Object, TemplateCallableModel,
boolean, ObjectWrapperAndUnwrapper)
+     * unwrapAndCastArgumentValue(args[argIndex], argIndex, type, false, null, callable,
false, objectWrapperAndUnwrapper)}.
      */
     public static <T> T getArgumentAndUnwrap(
             TemplateModel[] args, int argIndex, Class<T> type, TemplateDirectiveModel
callable,
@@ -760,7 +762,8 @@ public final class CallableUtils {
 
     /**
      * Convenience method to call
-     * {@link #unwrapAndCastArgumentValue(TemplateModel, int, Class, boolean, TemplateModel,
TemplateCallableModel, boolean)}.
+     * {@link #unwrapAndCastArgumentValue(TemplateModel, int, Class, boolean, Object, TemplateCallableModel,
boolean, ObjectWrapperAndUnwrapper)
+     * unwrapAndCastArgumentValue(args[argIndex], argIndex, type, true, null, callable, true,
objectWrapperAndUnwrapper)}.
      */
     public static <T> T getOptionalArgumentAndUnwrap(
             TemplateModel[] args, int argIndex, Class<T> type, TemplateFunctionModel
callable,
@@ -772,7 +775,8 @@ public final class CallableUtils {
 
     /**
      * Convenience method to call
-     * {@link #unwrapAndCastArgumentValue(TemplateModel, int, Class, boolean, TemplateModel,
TemplateCallableModel, boolean)}.
+     * {@link #unwrapAndCastArgumentValue(TemplateModel, int, Class, boolean, Object, TemplateCallableModel,
boolean, ObjectWrapperAndUnwrapper)
+     * unwrapAndCastArgumentValue(args[argIndex], argIndex, type, true, null, callable, false,
objectWrapperAndUnwrapper)}.
      */
     public static <T> T getOptionalArgumentAndUnwrap(
             TemplateModel[] args, int argIndex, Class<T> type, TemplateDirectiveModel
callable,
@@ -784,7 +788,8 @@ public final class CallableUtils {
 
     /**
      * Convenience method to call
-     * {@link #unwrapAndCastArgumentValue(TemplateModel, int, Class, boolean, TemplateModel,
TemplateCallableModel, boolean)}.
+     * {@link #unwrapAndCastArgumentValue(TemplateModel, int, Class, boolean, Object, TemplateCallableModel,
boolean, ObjectWrapperAndUnwrapper)
+     * unwrapAndCastArgumentValue(args[argIndex], argIndex, type, true, defaultValue, callable,
true, objectWrapperAndUnwrapper)}.
      */
     public static <T> T getOptionalArgumentAndUnwrap(
             TemplateModel[] args, int argIndex, Class<T> type, T defaultValue, TemplateFunctionModel
callable,
@@ -796,7 +801,8 @@ public final class CallableUtils {
 
     /**
      * Convenience method to call
-     * {@link #unwrapAndCastArgumentValue(TemplateModel, int, Class, boolean, TemplateModel,
TemplateCallableModel, boolean)}.
+     * {@link #unwrapAndCastArgumentValue(TemplateModel, int, Class, boolean, Object, TemplateCallableModel,
boolean, ObjectWrapperAndUnwrapper)
+     * unwrapAndCastArgumentValue(args[argIndex], argIndex, type, true, defaultValue, callable,
false, objectWrapperAndUnwrapper)}.
      */
     public static <T> T getOptionalArgumentAndUnwrap(
             TemplateModel[] args, int argIndex, Class<T> type, T defaultValue, TemplateDirectiveModel
callable,


Mime
View raw message