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.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Engine.VarCollector
protected Engine.VarCollector()
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–2017 The Apache Software Foundation. All rights reserved.