| Modifier and Type | Field and Description |
|---|---|
| private final SourceUnit |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| private static void | addImplicitConstructors(final ClassNode enumClass)
Add map and no-arg constructor or mirror those of the superclass (i.e. base enum). |
| private void | |
| protected SourceUnit | |
| private String | |
| private static void | makeBridgeConstructor(final ClassNode e, final Parameter[] p)
Ensures the enum type |
| private static List | |
| private void | transformConstructor(final ConstructorNode ctor)
If constructor does not define a call to super, then transform constructor to get String,int parameters at beginning and add call super(String,int). |
| public void | visitClass(final ClassNode node)
Overrides org. Implements org. |
| sourceUnit | back to summary |
|---|---|
| private final SourceUnit sourceUnit | |
| EnumCompletionVisitor | back to summary |
|---|---|
| public EnumCompletionVisitor(final CompilationUnit cu, final SourceUnit su) | |
| addImplicitConstructors | back to summary |
|---|---|
| private static void addImplicitConstructors(final ClassNode enumClass) Add map and no-arg constructor or mirror those of the superclass (i.e. base enum). | |
| completeEnum | back to summary |
|---|---|
| private void completeEnum(final ClassNode enumClass) | |
| getSourceUnit | back to summary |
|---|---|
| protected SourceUnit getSourceUnit() Implements abstract org.
| |
| getUniqueVariableName | back to summary |
|---|---|
| private String getUniqueVariableName(final String name, final Statement code) | |
| makeBridgeConstructor | back to summary |
|---|---|
| private static void makeBridgeConstructor(final ClassNode e, final Parameter[] p) Ensures the enum type | |
| nonSyntheticConstructors | back to summary |
|---|---|
| private static List | |
| transformConstructor | back to summary |
|---|---|
| private void transformConstructor(final ConstructorNode ctor) If constructor does not define a call to super, then transform constructor to get String,int parameters at beginning and add call super(String,int). | |
| visitClass | back to summary |
|---|---|
| public void visitClass(final ClassNode node) Overrides org. Implements org. Doc from org. Visit a ClassNode.
| |