org.geotools.filter
Class ExpressionBuilder

java.lang.Object
  extended byorg.geotools.filter.ExpressionBuilder

public class ExpressionBuilder
extends java.lang.Object

ExpressionBuilder is the main entry point for parsing Expressions and Filters from a non-xml language.

Author:
Ian Schneider

Constructor Summary
ExpressionBuilder()
           
 
Method Summary
static java.lang.String getFormattedErrorMessage(ParseException pe, java.lang.String input)
          Returns a formatted error string, showing the original input, along with a pointer to the location of the error and the error message itself.
static void main(java.lang.String[] args)
           
static java.lang.Object parse(FeatureType schema, java.lang.String input)
          Parse the input string into either a Filter or an Expression.
static java.lang.Object parse(java.lang.String input)
          Parse the input string into either a Filter or an Expression.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ExpressionBuilder

public ExpressionBuilder()
Method Detail

parse

public static java.lang.Object parse(FeatureType schema,
                                     java.lang.String input)
                              throws ParseException
Parse the input string into either a Filter or an Expression.

Throws:
ParseException

parse

public static java.lang.Object parse(java.lang.String input)
                              throws ParseException
Parse the input string into either a Filter or an Expression.

Throws:
ParseException

getFormattedErrorMessage

public static java.lang.String getFormattedErrorMessage(ParseException pe,
                                                        java.lang.String input)
Returns a formatted error string, showing the original input, along with a pointer to the location of the error and the error message itself.


main

public static final void main(java.lang.String[] args)
                       throws java.lang.Exception
Throws:
java.lang.Exception


Copyright © GeoTools. All Rights Reserved.