public class UastVisitorAdapter extends PsiElementVisitor
EMPTY_VISITOR
Constructor and Description |
---|
UastVisitorAdapter(AbstractUastNonRecursiveVisitor visitor,
boolean directOnly) |
Modifier and Type | Method and Description |
---|---|
void |
visitElement(PsiElement element) |
visitBinaryFile, visitComment, visitDirectory, visitErrorElement, visitFile, visitOuterLanguageElement, visitPlainText, visitPlainTextFile, visitWhiteSpace
public UastVisitorAdapter(AbstractUastNonRecursiveVisitor visitor, boolean directOnly)
visitor
- a non-recursive Uast Visitor. (Note: visitor methods should return true to be non-recursive)directOnly
- if true only elements which are directly converted from passed PsiElement
will be processed.
Setting to true is useful to avoid duplicating reports on sourcePsi
elements.public void visitElement(PsiElement element)
visitElement
in class PsiElementVisitor