public class TreeStore extends Object
TreeBuilder
and a
TreeCache
, provided at construction time.
The get(String)
method is then used to serve expression trees.Constructor and Description |
---|
TreeStore(TreeBuilder builder,
TreeCache cache)
Constructor.
|
public TreeStore(TreeBuilder builder, TreeCache cache)
builder
- the tree buildercache
- the tree cache (may be null
)public TreeBuilder getBuilder()
public Tree get(String expression) throws TreeBuilderException
Tree
.
If a tree for the given expression is present in the cache, it is
taken from there; otherwise, the expression string is parsed and
the resulting tree is added to the cache.expression
- expression stringTreeBuilderException
Copyright © 2017. All rights reserved.