public class ScriptSplitter extends Object
| Constructor and Description |
|---|
ScriptSplitter() |
| Modifier and Type | Method and Description |
|---|---|
static String[] |
splitScriptIntoExpressions(String script)
Takes an hql script represented as a String and splits it into multiple hql expressions
Expressions are assumed to end with a semi colon followed by a new line (unix style \n or windows style \r\n)
Comments are removed, but only if they start at the beginning of a line
|
public static String[] splitScriptIntoExpressions(String script)
script - the hql script to split into an expressionCopyright © 2016. All rights reserved.