org.apache.commons.jexl3.internal

## Class Engine.VarCollector

- java.lang.Object
- - org.apache.commons.jexl3.internal.Engine.VarCollector

- Enclosing class:
    Engine

      protected static class Engine.VarCollector
      extends Object

  Utility class to collect variables.

- - ### Constructor Summary

    Constructors
    Modifier | Constructor and Description
    --- | ---
    `protected` | `Engine.VarCollector()`

  - ### Method Summary

    Methods
    Modifier and Type | Method and Description
    --- | ---
    `void` | `add(String name)` Adds a 'segment' to the variable being collected.
    `void` | `collect(JexlNode node)` Starts/stops a variable collect.
    `Set<List<String>>` | `collected()`
    `boolean` | `isCollecting()`

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

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

- - ### Constructor Detail

    - #### Engine.VarCollector

          protected Engine.VarCollector()

  - ### Method Detail

    - #### collect

          public void collect(JexlNode node)

      Starts/stops a variable collect.
      Parameters:
        `node` - starts if not null, stop if null

    - #### isCollecting

          public boolean isCollecting()

      Returns:
        true if currently collecting a variable, false otherwise

    - #### add

          public void add(String name)

      Adds a 'segment' to the variable being collected.
      Parameters:
        `name` - the name

    - #### collected

          public Set<List<String>> collected()

      Returns:
        the collected variables

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