public abstract class BuiltInForNodeEx
extends freemarker.core.Expression
| Modifier and Type | Field and Description |
|---|---|
protected java.lang.String |
key |
protected freemarker.core.Expression |
target |
| Constructor and Description |
|---|
BuiltInForNodeEx() |
| Modifier and Type | Method and 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 if
args is big enough. |
protected java.lang.Number |
getOptNumberMethodArg(java.util.List args,
int argIdx)
Same as
getNumberMethodArg(java.util.List, int), but checks if args is big enough, and returns null if it
isn't. |
protected java.lang.String |
getOptStringMethodArg(java.util.List args,
int argIdx)
Same as
getStringMethodArg(java.util.List, int), but checks if args is big enough, and returns null 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 if
args 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) |
protected void setTarget(freemarker.core.Expression target)
public java.lang.String getCanonicalForm()
getCanonicalForm in class freemarker.core.TemplateObjectprotected final void checkMethodArgCount(java.util.List args,
int expectedCnt)
throws TemplateModelException
TemplateModelExceptionprotected final void checkMethodArgCount(int argCnt,
int expectedCnt)
throws TemplateModelException
TemplateModelExceptionprotected final void checkMethodArgCount(java.util.List args,
int minCnt,
int maxCnt)
throws TemplateModelException
TemplateModelExceptionprotected final void checkMethodArgCount(int argCnt,
int minCnt,
int maxCnt)
throws TemplateModelException
TemplateModelExceptionprotected final java.lang.String getOptStringMethodArg(java.util.List args,
int argIdx)
throws TemplateModelException
getStringMethodArg(java.util.List, int), but checks if args is big enough, and returns null if it
isn't.TemplateModelExceptionprotected final java.lang.String getStringMethodArg(java.util.List args,
int argIdx)
throws TemplateModelException
args is big enough.TemplateModelExceptionprotected final java.lang.Number getOptNumberMethodArg(java.util.List args,
int argIdx)
throws TemplateModelException
getNumberMethodArg(java.util.List, int), but checks if args is big enough, and returns null if it
isn't.TemplateModelExceptionprotected final java.lang.Number getNumberMethodArg(java.util.List args,
int argIdx)
throws TemplateModelException
args is big enough.TemplateModelExceptionprotected final TemplateModelException newMethodArgInvalidValueException(int argIdx, java.lang.Object[] details)
protected final TemplateModelException newMethodArgsInvalidValueException(java.lang.Object[] details)
protected freemarker.core.Expression deepCloneWithIdentifierReplaced_inner(java.lang.String replacedIdentifier,
freemarker.core.Expression replacement,
freemarker.core.Expression.ReplacemenetState replacementState)
deepCloneWithIdentifierReplaced_inner in class freemarker.core.Expression