EnumCompletionVisitor (groovy 2.4.12 API)
Date: 2017-06-21

Package: org.codehaus.groovy.classgen

## [Java] Class EnumCompletionVisitor

- org.codehaus.groovy.classgen.EnumCompletionVisitor

- Enums have a parent constructor with two arguments from java.lang.Enum. This visitor adds those two arguments into manually created constructors and performs the necessary super call.

- - ### Constructor Summary

    Constructors
    Constructor and description
    `EnumCompletionVisitor (CompilationUnit cu, SourceUnit su)`

  - ### Methods Summary

    Methods
    Type Params | Return Type | Name and description
    --- | --- | ---
    `` | `static void` | `addMapConstructors(ClassNode enumClass, boolean hasNoArg)`
    `` | `protected SourceUnit` | `getSourceUnit()`
    `` | `void` | `visitClass(ClassNode node)`

  - ### Inherited Methods Summary

    Inherited Methods
    Methods inherited from class | Name
    --- | ---
    `class ClassCodeVisitorSupport` | `visitField, visitMethod, visitConstructor, visitProperty, visitReturnStatement, visitDeclarationExpression, visitBreakStatement, visitCaseStatement, visitThrowStatement, visitContinueStatement, visitCatchStatement, visitExpressionStatement, visitTryCatchFinally, visitAssertStatement, visitSynchronizedStatement, visitBlockStatement, visitAnnotations, visitForLoop, visitIfElse, visitWhileLoop, visitSwitch, visitDoWhileLoop, visitClass, visitImports, visitPackage, visitListExpression, visitClassExpression, visitConstantExpression, visitPropertyExpression, visitTupleExpression, visitVariableExpression, visitArgumentlistExpression, visitMethodCallExpression, visitBinaryExpression, visitSpreadExpression, visitBitwiseNegationExpression, visitCastExpression, visitMapEntryExpression, visitArrayExpression, visitMethodPointerExpression, visitNotExpression, visitClosureListExpression, visitConstructorCallExpression, visitShortTernaryExpression, visitSpreadMapExpression, visitUnaryMinusExpression, visitGStringExpression, visitUnaryPlusExpression, visitBytecodeExpression, visitClosureExpression, visitMapExpression, visitAttributeExpression, visitPrefixExpression, visitBooleanExpression, visitRangeExpression, visitPostfixExpression, visitStaticMethodCallExpression, visitTernaryExpression, visitFieldExpression, wait, wait, wait, equals, toString, hashCode, getClass, notify, notifyAll`
    `class CodeVisitorSupport` | `visitListExpression, visitClassExpression, visitReturnStatement, visitConstantExpression, visitPropertyExpression, visitTupleExpression, visitVariableExpression, visitArgumentlistExpression, visitMethodCallExpression, visitBinaryExpression, visitSpreadExpression, visitBitwiseNegationExpression, visitCastExpression, visitMapEntryExpression, visitArrayExpression, visitMethodPointerExpression, visitNotExpression, visitClosureListExpression, visitConstructorCallExpression, visitShortTernaryExpression, visitDeclarationExpression, visitSpreadMapExpression, visitBreakStatement, visitUnaryMinusExpression, visitGStringExpression, visitUnaryPlusExpression, visitBytecodeExpression, visitClosureExpression, visitCaseStatement, visitThrowStatement, visitContinueStatement, visitCatchStatement, visitExpressionStatement, visitTryCatchFinally, visitMapExpression, visitAttributeExpression, visitAssertStatement, visitPrefixExpression, visitSynchronizedStatement, visitBlockStatement, visitBooleanExpression, visitRangeExpression, visitPostfixExpression, visitStaticMethodCallExpression, visitTernaryExpression, visitFieldExpression, visitForLoop, visitIfElse, visitWhileLoop, visitSwitch, visitDoWhileLoop, wait, wait, wait, equals, toString, hashCode, getClass, notify, notifyAll`

- - ### Constructor Detail

    - #### public EnumCompletionVisitor(CompilationUnit cu, SourceUnit su)

  - ### Method Detail

    - #### public static void addMapConstructors(ClassNode enumClass, boolean hasNoArg)

    - #### protected SourceUnit getSourceUnit()

    - #### public void visitClass(ClassNode node)