Java 类com.intellij.psi.filters.position.XmlTokenTypeFilter 实例源码

项目:intellij-ce-playground    文件:HtmlCompletionData.java   
@Override
protected ElementFilter createXmlEntityCompletionFilter() {
  if (isCaseInsensitive()) {
    return new AndFilter(
      new OrFilter (
        new XmlTokenTypeFilter(XmlTokenType.XML_DATA_CHARACTERS),
        new XmlTokenTypeFilter(XmlTokenType.XML_ATTRIBUTE_VALUE_TOKEN)
      ),
      new TextContainFilter("&")
    );
  }

  return super.createXmlEntityCompletionFilter();
}
项目:tools-idea    文件:HtmlCompletionData.java   
protected ElementFilter createXmlEntityCompletionFilter() {
  if (isCaseInsensitive()) {
    return new AndFilter(
      new OrFilter (
        new XmlTokenTypeFilter(XmlTokenType.XML_DATA_CHARACTERS),
        new XmlTokenTypeFilter(XmlTokenType.XML_ATTRIBUTE_VALUE_TOKEN)
      ),
      new TextContainFilter("&")
    );
  }

  return super.createXmlEntityCompletionFilter();
}
项目:intellij-ce-playground    文件:XmlEnumeratedTypeImpl.java   
@Override
public XmlElement[] getEnumeratedValues() {
  final List<XmlElement> result = new ArrayList<XmlElement>();
  processElements(new FilterElementProcessor(new XmlTokenTypeFilter(XmlTokenType.XML_NAME), result), this);
  return result.toArray(new XmlElement[result.size()]);
}
项目:intellij-ce-playground    文件:XmlCompletionData.java   
protected ElementFilter createXmlEntityCompletionFilter() {
  return new AndFilter(new LeftNeighbour(new XmlTextFilter("&")), new OrFilter(new XmlTokenTypeFilter(XmlTokenType.XML_DATA_CHARACTERS),
                                                                               new XmlTokenTypeFilter(
                                                                                   XmlTokenType.XML_ATTRIBUTE_VALUE_TOKEN)));
}
项目:tools-idea    文件:XmlEnumeratedTypeImpl.java   
public XmlElement[] getEnumeratedValues() {
  final List<XmlElement> result = new ArrayList<XmlElement>();
  processElements(new FilterElementProcessor(new XmlTokenTypeFilter(XmlTokenType.XML_NAME), result), this);
  return result.toArray(new XmlElement[result.size()]);
}
项目:tools-idea    文件:XmlCompletionData.java   
protected ElementFilter createXmlEntityCompletionFilter() {
  return new AndFilter(new LeftNeighbour(new XmlTextFilter("&")), new OrFilter(new XmlTokenTypeFilter(XmlTokenType.XML_DATA_CHARACTERS),
                                                                               new XmlTokenTypeFilter(
                                                                                   XmlTokenType.XML_ATTRIBUTE_VALUE_TOKEN)));
}
项目:consulo-xml    文件:XmlEnumeratedTypeImpl.java   
public XmlElement[] getEnumeratedValues() {
  final List<XmlElement> result = new ArrayList<XmlElement>();
  processElements(new FilterElementProcessor(new XmlTokenTypeFilter(XmlTokenType.XML_NAME), result), this);
  return result.toArray(new XmlElement[result.size()]);
}