org.eclipse.mat.ui.snapshot.panes.oql.textPartitioning
Class OQLPartitionScanner

java.lang.Object
  extended by RuleBasedPartitionScanner
      extended by org.eclipse.mat.ui.snapshot.panes.oql.textPartitioning.OQLPartitionScanner

public class OQLPartitionScanner
extends RuleBasedPartitionScanner

Defines rules for identifying partitions in an OQL queries. Defined partitions are: SELECT, FROM, WHERE, UNION clauses.


Field Summary
static java.lang.String COMMENT_CLAUSE
           
static java.lang.String FROM_CLAUSE
           
static java.lang.String SELECT_CLAUSE
           
static java.lang.String UNION_CLAUSE
           
static java.lang.String WHERE_CLAUSE
           
 
Constructor Summary
OQLPartitionScanner()
          Defines the rules for splitting query into.
 
Method Summary
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

SELECT_CLAUSE

public static final java.lang.String SELECT_CLAUSE
See Also:
Constant Field Values

FROM_CLAUSE

public static final java.lang.String FROM_CLAUSE
See Also:
Constant Field Values

WHERE_CLAUSE

public static final java.lang.String WHERE_CLAUSE
See Also:
Constant Field Values

UNION_CLAUSE

public static final java.lang.String UNION_CLAUSE
See Also:
Constant Field Values

COMMENT_CLAUSE

public static final java.lang.String COMMENT_CLAUSE
See Also:
Constant Field Values
Constructor Detail

OQLPartitionScanner

public OQLPartitionScanner()
Defines the rules for splitting query into. Each rule starts with one of the reserved word and terminates with any of the others (due t onested queries). EOF is a valid terminator for the partition