Search in sources :

Example 1 with XmlTokenTypeFilter

use of com.intellij.psi.filters.position.XmlTokenTypeFilter in project intellij-community by JetBrains.

the class XmlEnumeratedTypeImpl method getEnumeratedValues.

@Override
public XmlElement[] getEnumeratedValues() {
    final List<XmlElement> result = new ArrayList<>();
    processElements(new FilterElementProcessor(new XmlTokenTypeFilter(XmlTokenType.XML_NAME), result), this);
    return result.toArray(new XmlElement[result.size()]);
}
Also used : FilterElementProcessor(com.intellij.psi.scope.processor.FilterElementProcessor) XmlTokenTypeFilter(com.intellij.psi.filters.position.XmlTokenTypeFilter) ArrayList(java.util.ArrayList) XmlElement(com.intellij.psi.xml.XmlElement)

Aggregations

XmlTokenTypeFilter (com.intellij.psi.filters.position.XmlTokenTypeFilter)1 FilterElementProcessor (com.intellij.psi.scope.processor.FilterElementProcessor)1 XmlElement (com.intellij.psi.xml.XmlElement)1 ArrayList (java.util.ArrayList)1