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
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidcheckMethodArgCount(int argCnt, int expectedCnt)protected voidcheckMethodArgCount(int argCnt, int minCnt, int maxCnt)protected voidcheckMethodArgCount(List args, int expectedCnt)protected voidcheckMethodArgCount(List args, int minCnt, int maxCnt)protected freemarker.core.ExpressiondeepCloneWithIdentifierReplaced_inner(String replacedIdentifier, freemarker.core.Expression replacement, freemarker.core.Expression.ReplacemenetState replacementState)protected NumbergetNumberMethodArg(List args, int argIdx)Gets a method argument and checks if it's a number; it does NOT check ifargsis big enough.protected NumbergetOptNumberMethodArg(List args, int argIdx)Same asgetNumberMethodArg(java.util.List, int), but checks ifargsis big enough, and returnsnullif it isn't.protected StringgetOptStringMethodArg(List args, int argIdx)Same asgetStringMethodArg(java.util.List, int), but checks ifargsis big enough, and returnsnullif it isn't.protected StringgetStringMethodArg(List args, int argIdx)Gets a method argument and checks if it's a string; it does NOT check ifargsis big enough.protected TemplateModelExceptionnewMethodArgInvalidValueException(int argIdx, Object[] details)protected TemplateModelExceptionnewMethodArgsInvalidValueException(Object[] details)protected voidsetTarget(freemarker.core.Expression target)Methods inherited from class freemarker.core.Expression
getAsTemplateModelMethods 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:
getCanonicalFormin 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 ifargsis big enough, and returnsnullif it isn't.- Throws:
TemplateModelException
-
getStringMethodArg
Gets a method argument and checks if it's a string; it does NOT check ifargsis big enough.- Throws:
TemplateModelException
-
getOptNumberMethodArg
Same asgetNumberMethodArg(java.util.List, int), but checks ifargsis big enough, and returnsnullif it isn't.- Throws:
TemplateModelException
-
getNumberMethodArg
Gets a method argument and checks if it's a number; it does NOT check ifargsis 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_innerin classfreemarker.core.Expression
-