org.apache.commons.jexl3.internal

## Class TemplateDebugger

- java.lang.Object
- - org.apache.commons.jexl3.parser.ParserVisitor
  - - org.apache.commons.jexl3.internal.Debugger
    - - org.apache.commons.jexl3.internal.TemplateDebugger

- All Implemented Interfaces:
    JexlInfo.Detail

      public class TemplateDebugger
      extends Debugger

  A visitor for templates.

  A friend (ala C++) of template engine.

- - ### Field Summary

    - ### Fields inherited from class org.apache.commons.jexl3.internal.Debugger

      `builder, cause, end, indent, indentLevel, QUOTED_IDENTIFIER, start`

  - ### Constructor Summary

    Constructors
    Constructor and Description
    `TemplateDebugger()` Default ctor.

  - ### Method Summary

    Methods
    Modifier and Type | Method and Description
    --- | ---
    `protected Object` | `acceptStatement(JexlNode child, Object data)` Adds a statement node to the rebuilt expression.
    `boolean` | `debug(JxltEngine.Expression je)` Position the debugger on the root of a template expression.
    `boolean` | `debug(JxltEngine.Template jt)` Position the debugger on the root of a template script.
    `protected Object` | `visit(ASTBlock node, Object data)`

    - ### Methods inherited from class org.apache.commons.jexl3.internal.Debugger

      `accept, additiveNode, check, data, debug, debug, debug, debug, end, infixChildren, prefixChild, setIndentation, start, toString, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visitParameter`

    - ### Methods inherited from class org.apache.commons.jexl3.parser.ParserVisitor

      `visit, visit`

    - ### Methods inherited from class java.lang.Object

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait`

- - ### Constructor Detail

    - #### TemplateDebugger

          public TemplateDebugger()

      Default ctor.

  - ### Method Detail

    - #### debug

          public boolean debug(JxltEngine.Expression je)

      Position the debugger on the root of a template expression.
      Parameters:
        `je` - the expression
      Returns:
        true if the expression was a `TemplateEngine.TemplateExpression` instance, false otherwise

    - #### debug

          public boolean debug(JxltEngine.Template jt)

      Position the debugger on the root of a template script.
      Parameters:
        `jt` - the template
      Returns:
        true if the template was a `TemplateScript` instance, false otherwise

    - #### visit

          protected Object visit(ASTBlock node,
                     Object data)

      Overrides:
        `visit` in class `Debugger`

    - #### acceptStatement

          protected Object acceptStatement(JexlNode child,
                               Object data)

      Description copied from class: `Debugger`
      Adds a statement node to the rebuilt expression.
      Overrides:
        `acceptStatement` in class `Debugger`
      Parameters:
        `child` - the child node
        `data` - visitor pattern argument
      Returns:
        visitor pattern value

Copyright © 2001–2015 The Apache Software Foundation. All rights reserved.