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 voidcheckMethodArgCount(int argCnt, int expectedCnt)protected voidcheckMethodArgCount(int argCnt, int minCnt, int maxCnt)protected voidcheckMethodArgCount(java.util.List args, int expectedCnt)protected voidcheckMethodArgCount(java.util.List args, int minCnt, int maxCnt)protected freemarker.core.ExpressiondeepCloneWithIdentifierReplaced_inner(java.lang.String replacedIdentifier, freemarker.core.Expression replacement, freemarker.core.Expression.ReplacemenetState replacementState)java.lang.StringgetCanonicalForm()protected java.lang.NumbergetNumberMethodArg(java.util.List args, int argIdx)Gets a method argument and checks if it's a number; it does NOT check ifargsis big enough.protected java.lang.NumbergetOptNumberMethodArg(java.util.List args, int argIdx)Same asgetNumberMethodArg(java.util.List, int), but checks ifargsis big enough, and returnsnullif it isn't.protected java.lang.StringgetOptStringMethodArg(java.util.List args, int argIdx)Same asgetStringMethodArg(java.util.List, int), but checks ifargsis big enough, and returnsnullif it isn't.protected java.lang.StringgetStringMethodArg(java.util.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, java.lang.Object[] details)protected TemplateModelExceptionnewMethodArgsInvalidValueException(java.lang.Object[] details)protected voidsetTarget(freemarker.core.Expression target)
-
-
-
Method Detail
-
setTarget
protected void setTarget(freemarker.core.Expression target)
-
getCanonicalForm
public java.lang.String getCanonicalForm()
- Specified by:
getCanonicalFormin 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 TemplateModelExceptionSame asgetStringMethodArg(java.util.List, int), but checks ifargsis big enough, and returnsnullif it isn't.- Throws:
TemplateModelException
-
getStringMethodArg
protected final java.lang.String getStringMethodArg(java.util.List args, int argIdx) throws TemplateModelExceptionGets a method argument and checks if it's a string; it does NOT check ifargsis big enough.- Throws:
TemplateModelException
-
getOptNumberMethodArg
protected final java.lang.Number getOptNumberMethodArg(java.util.List args, int argIdx) throws TemplateModelExceptionSame asgetNumberMethodArg(java.util.List, int), but checks ifargsis big enough, and returnsnullif it isn't.- Throws:
TemplateModelException
-
getNumberMethodArg
protected final java.lang.Number getNumberMethodArg(java.util.List args, int argIdx) throws TemplateModelExceptionGets 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, 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_innerin classfreemarker.core.Expression
-
-