org.eclipse.jface.text.rules.WordPatternRule.endSequenceDetected()方法的使用及代码示例

x33g5p2x  于2022-02-03 转载在 其他  
字(1.9k)|赞(0)|评价(0)|浏览(73)

本文整理了Java中org.eclipse.jface.text.rules.WordPatternRule.endSequenceDetected()方法的一些代码示例,展示了WordPatternRule.endSequenceDetected()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。WordPatternRule.endSequenceDetected()方法的具体详情如下:
包路径:org.eclipse.jface.text.rules.WordPatternRule
类名称:WordPatternRule
方法名:endSequenceDetected

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);
}

相关文章