Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## 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
`protected` | `Engine.VarCollector()`

Method Summary
`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

Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

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