org.dbmaintain.script.parser.parsingstate.impl
Class Db2PlSqlBlockMatcher

java.lang.Object
  extended by org.dbmaintain.script.parser.parsingstate.impl.Db2PlSqlBlockMatcher
All Implemented Interfaces:
PlSqlBlockMatcher

public class Db2PlSqlBlockMatcher
extends Object
implements PlSqlBlockMatcher

Author:
Tim Ducheyne, Filip Neven

Constructor Summary
Db2PlSqlBlockMatcher()
           
 
Method Summary
 boolean isStartOfPlSqlBlock(StringBuilder statementWithoutCommentsOrWhitespace)
          Returns whether the given string is the start of a pl-sql block definition.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Db2PlSqlBlockMatcher

public Db2PlSqlBlockMatcher()
Method Detail

isStartOfPlSqlBlock

public boolean isStartOfPlSqlBlock(StringBuilder statementWithoutCommentsOrWhitespace)
Description copied from interface: PlSqlBlockMatcher
Returns whether the given string is the start of a pl-sql block definition. Only works if the given string doesn't contain redundant whitespace and if it's only the start of the statement, not containing any more data.

Specified by:
isStartOfPlSqlBlock in interface PlSqlBlockMatcher
Parameters:
statementWithoutCommentsOrWhitespace - the start of an SQL statement
Returns:
true if the given start of an SQL statement indicates the begin of a pl-sql block definition


Copyright © 2011. All Rights Reserved.