Class Block.Reference

  • All Implemented Interfaces:
    Renderable
    Enclosing class:
    Block

    public static class Block.Reference
    extends java.lang.Object
    implements Renderable
    actual class placed in the context, holds the context being used for the render, as well as the parent (which already holds everything else we need).
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean getAsBoolean()
      Makes #if( $blockRef ) true without rendering, so long as we aren't beyond max depth.
      boolean render​(InternalContextAdapter context, java.io.Writer writer)
      Render the AST of this block into the writer using the context.
      java.lang.String toString()  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Method Detail

      • render

        public boolean render​(InternalContextAdapter context,
                              java.io.Writer writer)
        Render the AST of this block into the writer using the context.
        Specified by:
        render in interface Renderable
        Parameters:
        context -
        writer -
        Returns:
        success status
      • getAsBoolean

        public boolean getAsBoolean()
        Makes #if( $blockRef ) true without rendering, so long as we aren't beyond max depth.
        Returns:
        reference value as boolean
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object
        Returns:
        rendered string