public class PsiExpressionTrimRenderer extends JavaRecursiveElementWalkingVisitor
Modifier and Type | Class and Description |
---|---|
static class |
PsiExpressionTrimRenderer.RenderFunction |
EMPTY_VISITOR
Constructor and Description |
---|
PsiExpressionTrimRenderer(java.lang.StringBuilder buf) |
elementFinished, stopWalking, visitElement
visitAnnotation, visitAnnotationArrayInitializer, visitAnnotationMethod, visitAnnotationParameterList, visitAnonymousClass, visitAssertStatement, visitBinaryExpression, visitBlockStatement, visitBreakStatement, visitCallExpression, visitCatchSection, visitClass, visitClassInitializer, visitClassObjectAccessExpression, visitCodeBlock, visitCodeFragment, visitContinueStatement, visitDeclarationStatement, visitDocComment, visitDocTag, visitDocTagValue, visitDocToken, visitDoWhileStatement, visitEmptyStatement, visitEnumConstant, visitEnumConstantInitializer, visitExpressionListStatement, visitExpressionStatement, visitField, visitForeachStatement, visitForStatement, visitIdentifier, visitIfStatement, visitImplicitVariable, visitImportList, visitImportStatement, visitImportStaticReferenceElement, visitImportStaticStatement, visitInlineDocTag, visitJavaFile, visitJavaToken, visitKeyword, visitLabeledStatement, visitLiteralExpression, visitLocalVariable, visitMethod, visitModifierList, visitModule, visitModuleReferenceElement, visitModuleStatement, visitNameValuePair, visitPackage, visitPackageAccessibilityStatement, visitPackageStatement, visitParameter, visitParameterList, visitPattern, visitPatternVariable, visitProvidesStatement, visitReceiverParameter, visitRecordComponent, visitRecordHeader, visitReferenceElement, visitReferenceList, visitReferenceParameterList, visitRequiresStatement, visitResourceExpression, visitResourceList, visitResourceVariable, visitReturnStatement, visitStatement, visitSuperExpression, visitSwitchExpression, visitSwitchLabeledRuleStatement, visitSwitchLabelStatement, visitSwitchStatement, visitSynchronizedStatement, visitThisExpression, visitThrowStatement, visitTryStatement, visitTypeElement, visitTypeParameter, visitTypeParameterList, visitTypeTestPattern, visitUnaryExpression, visitUsesStatement, visitVariable, visitWhileStatement, visitYieldStatement
visitBinaryFile, visitComment, visitDirectory, visitErrorElement, visitFile, visitOuterLanguageElement, visitPlainText, visitPlainTextFile, visitWhiteSpace
public PsiExpressionTrimRenderer(java.lang.StringBuilder buf)
public void visitExpression(PsiExpression expression)
visitExpression
in class JavaElementVisitor
public void visitInstanceOfExpression(PsiInstanceOfExpression expression)
visitInstanceOfExpression
in class JavaElementVisitor
public void visitParenthesizedExpression(PsiParenthesizedExpression expression)
visitParenthesizedExpression
in class JavaElementVisitor
public void visitTypeCastExpression(PsiTypeCastExpression expression)
visitTypeCastExpression
in class JavaElementVisitor
public void visitArrayAccessExpression(PsiArrayAccessExpression expression)
visitArrayAccessExpression
in class JavaElementVisitor
public void visitPrefixExpression(PsiPrefixExpression expression)
visitPrefixExpression
in class JavaElementVisitor
public void visitPostfixExpression(PsiPostfixExpression expression)
visitPostfixExpression
in class JavaElementVisitor
public void visitPolyadicExpression(PsiPolyadicExpression expression)
visitPolyadicExpression
in class JavaElementVisitor
public void visitLambdaExpression(PsiLambdaExpression expression)
visitLambdaExpression
in class JavaElementVisitor
public void visitConditionalExpression(PsiConditionalExpression expression)
visitConditionalExpression
in class JavaElementVisitor
public void visitAssignmentExpression(PsiAssignmentExpression expression)
visitAssignmentExpression
in class JavaElementVisitor
public void visitReferenceExpression(PsiReferenceExpression expr)
JavaElementVisitor
JavaRecursiveElementVisitor
knows that and implements this method accordingly.
All other visitor must decide themselves what implementation (visitReferenceElement() or visitExpression() or none or LOG.error())
is appropriate for them.visitReferenceExpression
in class JavaRecursiveElementWalkingVisitor
public void visitMethodCallExpression(PsiMethodCallExpression expr)
visitMethodCallExpression
in class JavaElementVisitor
public void visitMethodReferenceExpression(PsiMethodReferenceExpression expression)
visitMethodReferenceExpression
in class JavaElementVisitor
public void visitArrayInitializerExpression(PsiArrayInitializerExpression expression)
visitArrayInitializerExpression
in class JavaElementVisitor
public void visitExpressionList(PsiExpressionList list)
visitExpressionList
in class JavaElementVisitor
public void visitNewExpression(PsiNewExpression expr)
visitNewExpression
in class JavaElementVisitor
public static java.lang.String render(PsiExpression expression)
public static java.lang.String render(PsiExpression expression, int maxLength)