Package: org.codehaus.groovy.ast

## [Java] Class ClassCodeExpressionTransformer

- org.codehaus.groovy.ast.ClassCodeExpressionTransformer

- All Implemented Interfaces and Traits:
    ExpressionTransformer

      public abstract class ClassCodeExpressionTransformer
      extends ClassCodeVisitorSupport

  Transforms expressions in a whole class. Transformed expressions are usually not visited.

- - ### Methods Summary

    Methods
    Type Params | Return Type | Name and description
    --- | --- | ---
    `` | `protected static void` | `setSourcePosition(Expression toSet, Expression origNode)` Set the source position of toSet including its property expression if it has one.
    `` | `Expression` | `transform(Expression expr)`
    `` | `protected void` | `visitAnnotation(AnnotationNode node)`
    `` | `void` | `visitAssertStatement(AssertStatement stmt)`
    `` | `void` | `visitCaseStatement(CaseStatement stmt)`
    `` | `protected void` | `visitConstructorOrMethod(MethodNode node, boolean isConstructor)`
    `` | `void` | `visitDoWhileLoop(DoWhileStatement stmt)`
    `` | `void` | `visitExpressionStatement(ExpressionStatement stmt)`
    `` | `void` | `visitField(FieldNode node)`
    `` | `void` | `visitForLoop(ForStatement stmt)`
    `` | `void` | `visitIfElse(IfStatement stmt)`
    `` | `void` | `visitProperty(PropertyNode node)`
    `` | `void` | `visitReturnStatement(ReturnStatement stmt)`
    `` | `void` | `visitSwitch(SwitchStatement stmt)`
    `` | `void` | `visitSynchronizedStatement(SynchronizedStatement stmt)`
    `` | `void` | `visitThrowStatement(ThrowStatement stmt)`
    `` | `void` | `visitWhileLoop(WhileStatement stmt)`

  - ### Inherited Methods Summary

    Inherited Methods
    Methods inherited from class | Name
    --- | ---
    `class ClassCodeVisitorSupport` | `addError, getSourceUnit, visitAnnotation, visitAnnotations, visitAssertStatement, visitBlockStatement, visitBreakStatement, visitCaseStatement, visitCatchStatement, visitClass, visitClassCodeContainer, visitConstructor, visitConstructorOrMethod, visitContinueStatement, visitDeclarationExpression, visitDoWhileLoop, visitExpressionStatement, visitField, visitForLoop, visitIfElse, visitImports, visitMethod, visitObjectInitializerStatements, visitPackage, visitProperty, visitReturnStatement, visitStatement, visitSwitch, visitSynchronizedStatement, visitThrowStatement, visitTryCatchFinally, visitWhileLoop`
    `class CodeVisitorSupport` | `afterSwitchConditionExpressionVisited, visitArgumentlistExpression, visitArrayExpression, visitAssertStatement, visitAttributeExpression, visitBinaryExpression, visitBitwiseNegationExpression, visitBlockStatement, visitBooleanExpression, visitBreakStatement, visitBytecodeExpression, visitCaseStatement, visitCastExpression, visitCatchStatement, visitClassExpression, visitClosureExpression, visitClosureListExpression, visitConstantExpression, visitConstructorCallExpression, visitContinueStatement, visitDeclarationExpression, visitDoWhileLoop, visitEmptyStatement, visitExpressionStatement, visitFieldExpression, visitForLoop, visitGStringExpression, visitIfElse, visitLambdaExpression, visitListExpression, visitMapEntryExpression, visitMapExpression, visitMethodCallExpression, visitMethodPointerExpression, visitMethodReferenceExpression, visitNotExpression, visitPostfixExpression, visitPrefixExpression, visitPropertyExpression, visitRangeExpression, visitReturnStatement, visitShortTernaryExpression, visitSpreadExpression, visitSpreadMapExpression, visitStaticMethodCallExpression, visitSwitch, visitSynchronizedStatement, visitTernaryExpression, visitThrowStatement, visitTryCatchFinally, visitTupleExpression, visitUnaryMinusExpression, visitUnaryPlusExpression, visitVariableExpression, visitWhileLoop`

- - ### Method Detail

    - #### protected static void setSourcePosition(Expression toSet, Expression origNode)

      Set the source position of toSet including its property expression if it has one.

      Parameters:
        `toSet` - resulting node
        `origNode` - original node

    - #### @com.github.javaparser.ast.expr.MarkerAnnotationExprOverride public Expression transform(Expression expr)

    - #### @com.github.javaparser.ast.expr.MarkerAnnotationExprOverride protected void visitAnnotation(AnnotationNode node)

    - #### @com.github.javaparser.ast.expr.MarkerAnnotationExprOverride public void visitAssertStatement(AssertStatement stmt)

    - #### @com.github.javaparser.ast.expr.MarkerAnnotationExprOverride public void visitCaseStatement(CaseStatement stmt)

    - #### @com.github.javaparser.ast.expr.MarkerAnnotationExprOverride protected void visitConstructorOrMethod(MethodNode node, boolean isConstructor)

    - #### @com.github.javaparser.ast.expr.MarkerAnnotationExprOverride public void visitDoWhileLoop(DoWhileStatement stmt)

    - #### @com.github.javaparser.ast.expr.MarkerAnnotationExprOverride public void visitExpressionStatement(ExpressionStatement stmt)

    - #### @com.github.javaparser.ast.expr.MarkerAnnotationExprOverride public void visitField(FieldNode node)

    - #### @com.github.javaparser.ast.expr.MarkerAnnotationExprOverride public void visitForLoop(ForStatement stmt)

    - #### @com.github.javaparser.ast.expr.MarkerAnnotationExprOverride public void visitIfElse(IfStatement stmt)

    - #### @com.github.javaparser.ast.expr.MarkerAnnotationExprOverride public void visitProperty(PropertyNode node)

    - #### @com.github.javaparser.ast.expr.MarkerAnnotationExprOverride public void visitReturnStatement(ReturnStatement stmt)

    - #### @com.github.javaparser.ast.expr.MarkerAnnotationExprOverride public void visitSwitch(SwitchStatement stmt)

    - #### @com.github.javaparser.ast.expr.MarkerAnnotationExprOverride public void visitSynchronizedStatement(SynchronizedStatement stmt)

    - #### @com.github.javaparser.ast.expr.MarkerAnnotationExprOverride public void visitThrowStatement(ThrowStatement stmt)

    - #### @com.github.javaparser.ast.expr.MarkerAnnotationExprOverride public void visitWhileLoop(WhileStatement stmt)