|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.eclipse.jface.text.rules.PatternRule
org.eclipse.jface.text.rules.MultiLineRule
org.eclipse.datatools.sqltools.sqleditor.internal.utils.SQLMultiLineRule
public class SQLMultiLineRule
| Constructor Summary | |
|---|---|
SQLMultiLineRule(java.lang.String startSequence,
java.lang.String endSequence,
org.eclipse.jface.text.rules.IToken token)
Creates a rule for the given starting and ending sequence which, if detected, will return the specified token. |
|
SQLMultiLineRule(java.lang.String startSequence,
java.lang.String endSequence,
org.eclipse.jface.text.rules.IToken token,
char escapeCharacter)
Creates a rule for the given starting and ending sequence which, if detected, will return the specific token. |
|
| Method Summary | |
|---|---|
org.eclipse.jface.text.rules.IToken |
evaluate(org.eclipse.jface.text.rules.ICharacterScanner scanner)
Evaluates the rule by examining the characters available from the provided character scanner. |
boolean |
isCaseSensitive()
Gets whether or not to consider case when matching the rule pattern. |
void |
setCaseSensitive(boolean csensitive)
Sets whether or not to consider case when matching the rule pattern. |
void |
setIncludeInnerBlockCommands(java.lang.String[] innerBlockCommands)
Sets the inner block command set to the given set of commands. |
void |
setInnerBlocksEndSequence(java.lang.String[] innerEndBlocks)
Sets the inner blocks end sequence to the given pattern. |
void |
setInnerBlocksStartSequence(java.lang.String[] innerStartBlocks)
Sets the inner blocks start sequence to the given pattern. |
void |
setInnerBlocksWithSameEndSequence(java.lang.String[] innerBlocksSameEnd)
Sets the set of inner blocks with the same end sequence to the given set. |
| Methods inherited from class org.eclipse.jface.text.rules.PatternRule |
|---|
evaluate, getSuccessToken, setColumnConstraint |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public SQLMultiLineRule(java.lang.String startSequence,
java.lang.String endSequence,
org.eclipse.jface.text.rules.IToken token)
startSequence - the pattern's start sequenceendSequence - the pattern's end sequencetoken - the token to be returned on successMultiLineRule.MultiLineRule(java.lang.String, java.lang.String, org.eclipse.jface.text.rules.IToken)
public SQLMultiLineRule(java.lang.String startSequence,
java.lang.String endSequence,
org.eclipse.jface.text.rules.IToken token,
char escapeCharacter)
startSequence - the pattern's start sequenceendSequence - the pattern's end sequencetoken - the token to be returned on successescapeCharacter - the escape characterMultiLineRule.MultiLineRule(java.lang.String, java.lang.String, org.eclipse.jface.text.rules.IToken, char)| Method Detail |
|---|
public org.eclipse.jface.text.rules.IToken evaluate(org.eclipse.jface.text.rules.ICharacterScanner scanner)
true when calling isUndefined,
if the text the rule investigated does not match the rule's requirements.
evaluate in interface org.eclipse.jface.text.rules.IRuleevaluate in class org.eclipse.jface.text.rules.PatternRulescanner - the character scanner to be used by this rule
PatternRule.evaluate(org.eclipse.jface.text.rules.ICharacterScanner),
IRule.evaluate(org.eclipse.jface.text.rules.ICharacterScanner)public boolean isCaseSensitive()
true when case should be considered,
otherwise falsepublic void setCaseSensitive(boolean csensitive)
caseSensitive - true when case should be considered,
otherwise falsepublic void setInnerBlocksStartSequence(java.lang.String[] innerStartBlocks)
innerStartBlocks - the inner blocks start patternpublic void setInnerBlocksEndSequence(java.lang.String[] innerEndBlocks)
innerEndBlocks - the inner block end patternpublic void setIncludeInnerBlockCommands(java.lang.String[] innerBlockCommands)
innerBlockCommands - the inner block commands to setpublic void setInnerBlocksWithSameEndSequence(java.lang.String[] innerBlocksSameEnd)
innerBlocksSameEnd - set of inner blocks with same end to set
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||