public class ImportsFormatter extends XmlRecursiveElementVisitor
EMPTY_VISITOR
Constructor and Description |
---|
ImportsFormatter(CodeStyleSettings settings,
PsiFile file) |
Modifier and Type | Method and Description |
---|---|
protected boolean |
checkElementContainsRange(PsiElement element) |
protected boolean |
checkRangeContainsElement(PsiElement element) |
PsiElement |
process(PsiElement formatted) |
TextRange |
processText(PsiFile source,
TextRange rangeToReformat) |
protected void |
updateResultRange(int oldTextLength,
int newTextLength) |
void |
visitXmlAttribute(XmlAttribute attribute) |
void |
visitXmlTag(XmlTag tag) |
void |
visitXmlText(XmlText text) |
visitElement, visitFile
visitXmlAttributeValue, visitXmlComment, visitXmlDecl, visitXmlDoctype, visitXmlDocument, visitXmlElement, visitXmlFile, visitXmlProcessingInstruction, visitXmlProlog, visitXmlToken
visitBinaryFile, visitComment, visitDirectory, visitErrorElement, visitOuterLanguageElement, visitPlainText, visitPlainTextFile, visitWhiteSpace
public ImportsFormatter(CodeStyleSettings settings, PsiFile file)
public void visitXmlTag(XmlTag tag)
visitXmlTag
in class XmlElementVisitor
public void visitXmlText(XmlText text)
visitXmlText
in class XmlElementVisitor
public void visitXmlAttribute(XmlAttribute attribute)
visitXmlAttribute
in class XmlElementVisitor
protected void updateResultRange(int oldTextLength, int newTextLength)
protected boolean checkElementContainsRange(PsiElement element)
protected boolean checkRangeContainsElement(PsiElement element)
public PsiElement process(PsiElement formatted)