Class CodeBlock

All Implemented Interfaces:
JavaCCConstants, Node, Expression, freemarker.template.TemplateHashModel, freemarker.template.TemplateModel, freemarker.template.TemplateNodeModel, freemarker.template.TemplateScalarModel, Comparable<Node>

public class CodeBlock extends EmptyExpansion implements Expression
  • Constructor Details

    • CodeBlock

      public CodeBlock()
  • Method Details

    • getAsString

      public String getAsString()
      Specified by:
      getAsString in interface Expression
      Specified by:
      getAsString in interface freemarker.template.TemplateScalarModel
      Overrides:
      getAsString in class BaseNode
    • isEmpty

      public boolean isEmpty()
      The block is empty if it only consists of { and }
      Specified by:
      isEmpty in interface freemarker.template.TemplateHashModel
      Overrides:
      isEmpty in class BaseNode
    • isAppliesInLookahead

      public boolean isAppliesInLookahead()
    • setAppliesInLookahead

      public void setAppliesInLookahead(boolean appliesInLookahead)
    • getJavaCode

      public CodeBlock getJavaCode()
    • isPossiblyEmpty

      public boolean isPossiblyEmpty()
      Overrides:
      isPossiblyEmpty in class EmptyExpansion
      Returns:
      Can this expansion be matched by the empty string.