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

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

public class OraclePlSqlBlockMatcher
extends Object
implements PlSqlBlockMatcher

Author:
Filip Neven, Tim Ducheyne

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

OraclePlSqlBlockMatcher

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