net.refractions.udig.catalog.util
Class ASTFactory

java.lang.Object
  extended by net.refractions.udig.catalog.util.ASTFactory

public class ASTFactory
extends java.lang.Object

Author:
David Zwiers, Refractions Research

Method Summary
static AST parse(java.lang.String str)
          Creates an AST for the pattern The pattern uses the following conventions: use " " to surround a phase use + to represent 'AND' use - to represent 'OR' use ! to represent 'NOT' use ( ) to designate scope
protected static java.util.List<java.lang.String> tokenize(java.lang.String pattern)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

parse

public static AST parse(java.lang.String str)
Creates an AST for the pattern The pattern uses the following conventions: use " " to surround a phase use + to represent 'AND' use - to represent 'OR' use ! to represent 'NOT' use ( ) to designate scope

Parameters:
pattern - Search pattern
Returns:
AST

tokenize

protected static java.util.List<java.lang.String> tokenize(java.lang.String pattern)