public final class CallBasicNode extends CallNode
Important: Do not use outside of Soy code (treat as superpackage-private).
| Modifier and Type | Class and Description |
|---|---|
static class |
CallBasicNode.Builder |
| Modifier and Type | Field and Description |
|---|---|
static SoyError |
MISSING_CALLEE_NAME |
FALLBACK_BASE_PLACEHOLDER_NAMESPACES| Modifier and Type | Method and Description |
|---|---|
CallBasicNode |
clone()
Copies this node.
|
String |
getCalleeName()
Returns the full name of the template being called, or null if not yet set.
|
SoyNode.Kind |
getKind()
Returns this node's kind (corresponding to this node's specific type).
|
Collection<TemplateParam> |
getParamsToRuntimeCheck(TemplateNode callee)
Returns the subset of
params of the callee that require runtime
type checking when this node is being rendered. |
String |
getSrcCalleeName()
Returns the callee name string as it appears in the source code.
|
void |
setCalleeName(String calleeName)
Sets the full name of the template being called (must not be a partial name).
|
void |
setParamsToRuntimeCheck(Collection<TemplateParam> paramNames)
Sets the names of the parameters that require runtime type checking against the callees formal
types.
|
genBasePhName, genSamenessKey, getAllExprUnions, getDataExpr, getEscapingDirectiveNames, getParent, getTagString, getUserSuppliedPhName, isPassingAllData, isPassingData, parseDataAttributeHelper, setEscapingDirectiveNames, toSourceStringaddChild, addChild, addChildren, addChildren, appendSourceStringForChildren, appendTreeStringForChildren, clearChildren, getChild, getChildIndex, getChildren, numChildren, removeChild, removeChild, replaceChild, replaceChild, toTreeStringbuildTagStringHelper, buildTagStringHelper, getCommandName, getCommandTextgetId, getSourceLocation, setId, setSourceLocation, toStringcouldHaveSyntaxVersionAtLeast, getNearestAncestor, getSyntaxVersionBound, hasAncestor, maybeSetSyntaxVersionBound, setParentequals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitaddChild, addChild, addChildren, addChildren, appendSourceStringForChildren, appendTreeStringForChildren, clearChildren, getChild, getChildIndex, getChildren, numChildren, removeChild, removeChild, replaceChild, replaceChildpublic static final SoyError MISSING_CALLEE_NAME
public SoyNode.Kind getKind()
SoyNodepublic String getSrcCalleeName()
public void setCalleeName(String calleeName)
calleeName - The full name of the template being called.public void setParamsToRuntimeCheck(Collection<TemplateParam> paramNames)
public Collection<TemplateParam> getParamsToRuntimeCheck(TemplateNode callee)
CallNodeparams of the callee that require runtime
type checking when this node is being rendered.getParamsToRuntimeCheck in class CallNodepublic String getCalleeName()
public CallBasicNode clone()
NodeAll clone() overrides should follow this contract:
{@literal @}Override public T clone() {
return new T(this);
}
NOTE: this means we do not ultimately delegate to Object.clone(), ever.
TODO(lukes): The usecases for a clone method are few and far between. Making the AST nodes immutable (or at least unmodifiable) would be preferable to maintaining our clone() methods.