本文整理了Java中org.eclipse.jface.text.rules.WordPatternRule.endSequenceDetected()
方法的一些代码示例,展示了WordPatternRule.endSequenceDetected()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。WordPatternRule.endSequenceDetected()
方法的具体详情如下:
包路径:org.eclipse.jface.text.rules.WordPatternRule
类名称:WordPatternRule
方法名:endSequenceDetected
[英]Returns whether the end sequence was detected. The rule acquires the rest of the word, using the provided word detector, and tests to determine if it ends with the end sequence.
[中]返回是否检测到结束序列。该规则使用提供的单词检测器获取单词的其余部分,并进行测试以确定其是否以结束序列结尾。
代码示例来源:origin: org.eclipse.pde/org.eclipse.pde.ui
@Override
protected boolean endSequenceDetected(ICharacterScanner scanner) {
fCount++;
if (scanner.read() == '}')
return fCount > 2;
scanner.unread();
return super.endSequenceDetected(scanner);
}
代码示例来源:origin: org.eclipse/org.eclipse.jdt.ui
protected boolean endSequenceDetected(ICharacterScanner scanner) {
fCount++;
if (scanner.read() == '}')
return fCount > 2;
scanner.unread();
return super.endSequenceDetected(scanner);
}
代码示例来源:origin: org.eclipse.pde/org.eclipse.pde.ui
@Override
protected boolean endSequenceDetected(ICharacterScanner scanner) {
// Read the next character
char character = (char) scanner.read();
// Detect end character
if (Character.isWhitespace(character)) {
return true;
} else if (character == '<') {
return true;
}
// Unread the character just read
scanner.unread();
// Process as normal
return super.endSequenceDetected(scanner);
}
代码示例来源:origin: org.eclipse.jdt/org.eclipse.jdt.ui
@Override
protected boolean endSequenceDetected(ICharacterScanner scanner) {
fCount++;
if (scanner.read() == '}')
return fCount > 2;
scanner.unread();
return super.endSequenceDetected(scanner);
}
代码示例来源:origin: org.eclipse.scout.sdk.deps/org.eclipse.jdt.ui
@Override
protected boolean endSequenceDetected(ICharacterScanner scanner) {
fCount++;
if (scanner.read() == '}')
return fCount > 2;
scanner.unread();
return super.endSequenceDetected(scanner);
}
内容来源于网络,如有侵权,请联系作者删除!