Package freemarker.core
Class BuiltInForNodeEx
- java.lang.Object
-
- freemarker.core.TemplateObject
-
- freemarker.core.Expression
-
- freemarker.core.BuiltInForNodeEx
-
- All Implemented Interfaces:
java.lang.Cloneable
public abstract class BuiltInForNodeEx extends freemarker.core.Expression
-
-
Constructor Summary
Constructors Constructor Description BuiltInForNodeEx()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
checkMethodArgCount(int argCnt, int expectedCnt)
protected void
checkMethodArgCount(int argCnt, int minCnt, int maxCnt)
protected void
checkMethodArgCount(java.util.List args, int expectedCnt)
protected void
checkMethodArgCount(java.util.List args, int minCnt, int maxCnt)
protected freemarker.core.Expression
deepCloneWithIdentifierReplaced_inner(java.lang.String replacedIdentifier, freemarker.core.Expression replacement, freemarker.core.Expression.ReplacemenetState replacementState)
java.lang.String
getCanonicalForm()
protected java.lang.Number
getNumberMethodArg(java.util.List args, int argIdx)
Gets a method argument and checks if it's a number; it does NOT check ifargs
is big enough.protected java.lang.Number
getOptNumberMethodArg(java.util.List args, int argIdx)
Same asgetNumberMethodArg(java.util.List, int)
, but checks ifargs
is big enough, and returnsnull
if it isn't.protected java.lang.String
getOptStringMethodArg(java.util.List args, int argIdx)
Same asgetStringMethodArg(java.util.List, int)
, but checks ifargs
is big enough, and returnsnull
if it isn't.protected java.lang.String
getStringMethodArg(java.util.List args, int argIdx)
Gets a method argument and checks if it's a string; it does NOT check ifargs
is big enough.protected TemplateModelException
newMethodArgInvalidValueException(int argIdx, java.lang.Object[] details)
protected TemplateModelException
newMethodArgsInvalidValueException(java.lang.Object[] details)
protected void
setTarget(freemarker.core.Expression target)
-
-
-
Method Detail
-
setTarget
protected void setTarget(freemarker.core.Expression target)
-
getCanonicalForm
public java.lang.String getCanonicalForm()
- Specified by:
getCanonicalForm
in classfreemarker.core.TemplateObject
-
checkMethodArgCount
protected final void checkMethodArgCount(java.util.List args, int expectedCnt) throws TemplateModelException
- Throws:
TemplateModelException
-
checkMethodArgCount
protected final void checkMethodArgCount(int argCnt, int expectedCnt) throws TemplateModelException
- Throws:
TemplateModelException
-
checkMethodArgCount
protected final void checkMethodArgCount(java.util.List args, int minCnt, int maxCnt) throws TemplateModelException
- Throws:
TemplateModelException
-
checkMethodArgCount
protected final void checkMethodArgCount(int argCnt, int minCnt, int maxCnt) throws TemplateModelException
- Throws:
TemplateModelException
-
getOptStringMethodArg
protected final java.lang.String getOptStringMethodArg(java.util.List args, int argIdx) throws TemplateModelException
Same asgetStringMethodArg(java.util.List, int)
, but checks ifargs
is big enough, and returnsnull
if it isn't.- Throws:
TemplateModelException
-
getStringMethodArg
protected final java.lang.String getStringMethodArg(java.util.List args, int argIdx) throws TemplateModelException
Gets a method argument and checks if it's a string; it does NOT check ifargs
is big enough.- Throws:
TemplateModelException
-
getOptNumberMethodArg
protected final java.lang.Number getOptNumberMethodArg(java.util.List args, int argIdx) throws TemplateModelException
Same asgetNumberMethodArg(java.util.List, int)
, but checks ifargs
is big enough, and returnsnull
if it isn't.- Throws:
TemplateModelException
-
getNumberMethodArg
protected final java.lang.Number getNumberMethodArg(java.util.List args, int argIdx) throws TemplateModelException
Gets a method argument and checks if it's a number; it does NOT check ifargs
is big enough.- Throws:
TemplateModelException
-
newMethodArgInvalidValueException
protected final TemplateModelException newMethodArgInvalidValueException(int argIdx, java.lang.Object[] details)
-
newMethodArgsInvalidValueException
protected final TemplateModelException newMethodArgsInvalidValueException(java.lang.Object[] details)
-
deepCloneWithIdentifierReplaced_inner
protected freemarker.core.Expression deepCloneWithIdentifierReplaced_inner(java.lang.String replacedIdentifier, freemarker.core.Expression replacement, freemarker.core.Expression.ReplacemenetState replacementState)
- Specified by:
deepCloneWithIdentifierReplaced_inner
in classfreemarker.core.Expression
-
-