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 final voidcheckMethodArgCount(int argCnt, int expectedCnt) protected final voidcheckMethodArgCount(int argCnt, int minCnt, int maxCnt) protected final voidcheckMethodArgCount(List args, int expectedCnt) protected final voidcheckMethodArgCount(List args, int minCnt, int maxCnt) protected freemarker.core.ExpressiondeepCloneWithIdentifierReplaced_inner(String replacedIdentifier, freemarker.core.Expression replacement, freemarker.core.Expression.ReplacemenetState replacementState) protected final NumbergetNumberMethodArg(List args, int argIdx) Gets a method argument and checks if it's a number; it does NOT check ifargsis big enough.protected final NumbergetOptNumberMethodArg(List args, int argIdx) Same asgetNumberMethodArg(java.util.List, int), but checks ifargsis big enough, and returnsnullif it isn't.protected final StringgetOptStringMethodArg(List args, int argIdx) Same asgetStringMethodArg(java.util.List, int), but checks ifargsis big enough, and returnsnullif it isn't.protected final StringgetStringMethodArg(List args, int argIdx) Gets a method argument and checks if it's a string; it does NOT check ifargsis big enough.protected final TemplateModelExceptionnewMethodArgInvalidValueException(int argIdx, Object[] details) protected final 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
- 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
-