Class TemplateEngine.Block

java.lang.Object
org.apache.commons.jexl3.internal.TemplateEngine.Block
Enclosing class:
TemplateEngine

static final class TemplateEngine.Block extends Object
Abstract the source fragments, verbatim or immediate typed text blocks.
  • Field Details

    • type

      private final TemplateEngine.BlockType type
      The type of block, verbatim or directive.
    • line

      private final int line
      The block start line info.
    • body

      private final String body
      The actual content.
  • Constructor Details

    • Block

      Block(TemplateEngine.BlockType theType, int theLine, String theBlock)
      Creates a new block.
      Parameters:
      theType - the block type
      theLine - the line number
      theBlock - the content
  • Method Details

    • getType

      Returns:
      type
    • getLine

      int getLine()
      Returns:
      line
    • getBody

      String getBody()
      Returns:
      body
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • toString

      protected void toString(StringBuilder strb, String prefix)
      Appends this block string representation to a builder.
      Parameters:
      strb - the string builder to append to
      prefix - the line prefix (immediate or deferred)