class DepthVisitor extends BaseVisitor {

    public static int getDepth(JexlNode root, int maxDepth) {
        DepthVisitor vis = new DepthVisitor(maxDepth);
        Depth depth = new Depth();
        root.jjtAccept(vis, depth);
        return depth.getMaxDepth();
    }

    public  DepthVisitor(int maxDepth);

}