| java.lang.Object freemarker.core.TemplateObject freemarker.core.TemplateElement
All known Subclasses: freemarker.core.CompressedBlock, freemarker.core.Case, freemarker.core.LibraryLoad, freemarker.core.VisitNode, freemarker.core.DebugBreak, freemarker.core.UnifiedCall, freemarker.core.TransformBlock, freemarker.core.IteratorBlock, freemarker.core.EscapeBlock, freemarker.core.NumericalOutput, freemarker.core.RecoveryBlock, freemarker.core.SwitchBlock, freemarker.core.BodyInstruction, freemarker.core.FlushInstruction, freemarker.core.StopInstruction, freemarker.core.DollarVariable, freemarker.core.Include, freemarker.core.Comment, freemarker.core.TextBlock, freemarker.core.BreakInstruction, freemarker.core.TrimInstruction, freemarker.core.RecurseNode, freemarker.core.Assignment, freemarker.core.IfBlock, freemarker.core.NoEscapeBlock, freemarker.core.PropertySetting, freemarker.core.ReturnInstruction, freemarker.core.AttemptBlock, freemarker.core.BlockAssignment, freemarker.core.FallbackInstruction, freemarker.core.Macro, freemarker.core.MixedContent, freemarker.core.AssignmentInstruction, freemarker.core.ConditionalBlock,
TemplateElement | abstract public class TemplateElement extends TemplateObject implements TreeNode(Code) | | Objects that represent elements in the compiled
tree representation of the template necessarily
descend from this abstract class.
|
getAllowsChildren | public boolean getAllowsChildren()(Code) | | |
getChildCount | public int getChildCount()(Code) | | |
heedsOpeningWhitespace | boolean heedsOpeningWhitespace()(Code) | | determines whether this element's presence on a line
indicates that we should not strip opening whitespace
in the post-parse whitespace gobbling step.
|
heedsTrailingWhitespace | boolean heedsTrailingWhitespace()(Code) | | determines whether this element's presence on a line
indicates that we should not strip trailing whitespace
in the post-parse whitespace gobbling step.
|
isIgnorable | boolean isIgnorable()(Code) | | |
isLeaf | public boolean isLeaf()(Code) | | |
postParseCleanup | TemplateElement postParseCleanup(boolean stripWhitespace) throws ParseException(Code) | | We walk the tree and do some cleanup
Parameters: stripWhitespace - whether to clean up superfluous whitespace |
Fields inherited from freemarker.core.TemplateObject | int beginColumnbeginLineendColumnendLine(Code)(Java Doc)
|
Methods inherited from freemarker.core.TemplateObject | static void assertNonNull(TemplateModel model, Expression exp, Environment env) throws InvalidReferenceException(Code)(Java Doc) public boolean contains(int column, int line)(Code)(Java Doc) TemplateObject copyLocationFrom(TemplateObject from)(Code)(Java Doc) final public int getBeginColumn()(Code)(Java Doc) final public int getBeginLine()(Code)(Java Doc) abstract public String getCanonicalForm()(Code)(Java Doc) final public int getEndColumn()(Code)(Java Doc) final public int getEndLine()(Code)(Java Doc) public String getEndLocation()(Code)(Java Doc) final public String getSource()(Code)(Java Doc) public String getStartLocation()(Code)(Java Doc) public Template getTemplate()(Code)(Java Doc) static TemplateException invalidTypeException(TemplateModel model, Expression exp, Environment env, String expected) throws TemplateException(Code)(Java Doc) final void setLocation(Template template, Token begin, Token end) throws ParseException(Code)(Java Doc) final void setLocation(Template template, Token begin, TemplateObject end) throws ParseException(Code)(Java Doc) final void setLocation(Template template, TemplateObject begin, Token end) throws ParseException(Code)(Java Doc) final void setLocation(Template template, TemplateObject begin, TemplateObject end) throws ParseException(Code)(Java Doc) void setLocation(Template template, int beginColumn, int beginLine, int endColumn, int endLine) throws ParseException(Code)(Java Doc) public String toString()(Code)(Java Doc)
|
|
|