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

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

public class PostgreSqlPlSqlBlockMatcher
extends Object
implements PlSqlBlockMatcher

Author:
Sean Laurent, Filip Neven, Tim Ducheyne

Constructor Summary
PostgreSqlPlSqlBlockMatcher()
           
 
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

PostgreSqlPlSqlBlockMatcher

public PostgreSqlPlSqlBlockMatcher()
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.