Class Block.Reference
java.lang.Object
org.apache.velocity.runtime.directive.Block.Reference
- All Implemented Interfaces:
Renderable
- Enclosing class:
Block
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).
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
Makes #if( $blockRef ) true without rendering, so long as we aren't beyond max depth.boolean
render
(InternalContextAdapter context, Writer writer) Render the AST of this block into the writer using the context.toString()
-
Constructor Details
-
Reference
- Parameters:
context
-parent
-
-
-
Method Details
-
render
Render the AST of this block into the writer using the context.- Specified by:
render
in interfaceRenderable
- 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
-