Class SQLValuesHighlight
- java.lang.Object
-
- org.pentaho.di.ui.trans.steps.tableinput.SQLValuesHighlight
-
- All Implemented Interfaces:
EventListener,org.eclipse.swt.custom.LineStyleListener,org.eclipse.swt.internal.SWTEventListener
public class SQLValuesHighlight extends Object implements org.eclipse.swt.custom.LineStyleListener
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description classSQLValuesHighlight.JavaScannerA simple fuzzy scanner for Java
-
Constructor Summary
Constructors Constructor Description SQLValuesHighlight()SQLValuesHighlight(String[] strArrSQLFunctions)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddKeyWords(String[] reservedWords)List<org.pentaho.di.core.database.SqlScriptStatement>getScriptStatements()voidlineGetStyle(org.eclipse.swt.custom.LineStyleEvent event)Event.detail line start offset (input) Event.text line text (input) LineStyleEvent.styles Enumeration of StyleRanges, need to be in order.voidparseBlockComments(String text)voidsetScriptStatements(List<org.pentaho.di.core.database.SqlScriptStatement> scriptStatements)
-
-
-
Field Detail
-
EOF
public static final int EOF
- See Also:
- Constant Field Values
-
EOL
public static final int EOL
- See Also:
- Constant Field Values
-
WORD
public static final int WORD
- See Also:
- Constant Field Values
-
WHITE
public static final int WHITE
- See Also:
- Constant Field Values
-
KEY
public static final int KEY
- See Also:
- Constant Field Values
-
COMMENT
public static final int COMMENT
- See Also:
- Constant Field Values
-
STRING
public static final int STRING
- See Also:
- Constant Field Values
-
OTHER
public static final int OTHER
- See Also:
- Constant Field Values
-
NUMBER
public static final int NUMBER
- See Also:
- Constant Field Values
-
FUNCTIONS
public static final int FUNCTIONS
- See Also:
- Constant Field Values
-
MAXIMUM_TOKEN
public static final int MAXIMUM_TOKEN
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
SQLValuesHighlight
public SQLValuesHighlight()
-
SQLValuesHighlight
public SQLValuesHighlight(String[] strArrSQLFunctions)
-
-
Method Detail
-
lineGetStyle
public void lineGetStyle(org.eclipse.swt.custom.LineStyleEvent event)
Event.detail line start offset (input) Event.text line text (input) LineStyleEvent.styles Enumeration of StyleRanges, need to be in order. (output) LineStyleEvent.background line background color (output)- Specified by:
lineGetStylein interfaceorg.eclipse.swt.custom.LineStyleListener
-
parseBlockComments
public void parseBlockComments(String text)
-
getScriptStatements
public List<org.pentaho.di.core.database.SqlScriptStatement> getScriptStatements()
- Returns:
- the scriptStatements
-
setScriptStatements
public void setScriptStatements(List<org.pentaho.di.core.database.SqlScriptStatement> scriptStatements)
- Parameters:
scriptStatements- the scriptStatements to set
-
addKeyWords
public void addKeyWords(String[] reservedWords)
-
-