Package freemarker.core
Class BuiltInForNodeEx
java.lang.Object
freemarker.core.TemplateObject
freemarker.core.Expression
freemarker.core.BuiltInForNodeEx
- All Implemented Interfaces:
Cloneable
public abstract class BuiltInForNodeEx
extends freemarker.core.Expression
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected void
checkMethodArgCount(int argCnt, int expectedCnt)
protected void
checkMethodArgCount(int argCnt, int minCnt, int maxCnt)
protected void
checkMethodArgCount(List args, int expectedCnt)
protected void
checkMethodArgCount(List args, int minCnt, int maxCnt)
protected freemarker.core.Expression
deepCloneWithIdentifierReplaced_inner(String replacedIdentifier, freemarker.core.Expression replacement, freemarker.core.Expression.ReplacemenetState replacementState)
protected Number
getNumberMethodArg(List args, int argIdx)
Gets a method argument and checks if it's a number; it does NOT check ifargs
is big enough.protected Number
getOptNumberMethodArg(List args, int argIdx)
Same asgetNumberMethodArg(java.util.List, int)
, but checks ifargs
is big enough, and returnsnull
if it isn't.protected String
getOptStringMethodArg(List args, int argIdx)
Same asgetStringMethodArg(java.util.List, int)
, but checks ifargs
is big enough, and returnsnull
if it isn't.protected String
getStringMethodArg(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, Object[] details)
protected TemplateModelException
newMethodArgsInvalidValueException(Object[] details)
protected void
setTarget(freemarker.core.Expression target)
Methods inherited from class freemarker.core.Expression
getAsTemplateModel
Methods inherited from class freemarker.core.TemplateObject
contains, getBeginColumn, getBeginLine, getEndColumn, getEndLine, getEndLocation, getEndLocationQuoted, getSource, getStartLocation, getStartLocationQuoted, getTemplate, toString
-
Field Details
-
target
protected freemarker.core.Expression target -
key
-
-
Constructor Details
-
BuiltInForNodeEx
public BuiltInForNodeEx()
-
-
Method Details
-
setTarget
protected void setTarget(freemarker.core.Expression target) -
getCanonicalForm
- Specified by:
getCanonicalForm
in classfreemarker.core.TemplateObject
-
checkMethodArgCount
- Throws:
TemplateModelException
-
checkMethodArgCount
protected final void checkMethodArgCount(int argCnt, int expectedCnt) throws TemplateModelException- Throws:
TemplateModelException
-
checkMethodArgCount
protected final void checkMethodArgCount(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
Same asgetStringMethodArg(java.util.List, int)
, but checks ifargs
is big enough, and returnsnull
if it isn't.- Throws:
TemplateModelException
-
getStringMethodArg
Gets a method argument and checks if it's a string; it does NOT check ifargs
is big enough.- Throws:
TemplateModelException
-
getOptNumberMethodArg
Same asgetNumberMethodArg(java.util.List, int)
, but checks ifargs
is big enough, and returnsnull
if it isn't.- Throws:
TemplateModelException
-
getNumberMethodArg
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, Object[] details) -
newMethodArgsInvalidValueException
-
deepCloneWithIdentifierReplaced_inner
protected freemarker.core.Expression deepCloneWithIdentifierReplaced_inner(String replacedIdentifier, freemarker.core.Expression replacement, freemarker.core.Expression.ReplacemenetState replacementState)- Specified by:
deepCloneWithIdentifierReplaced_inner
in classfreemarker.core.Expression
-