@FunctionalInterface
public interface CompilationUnit.IPrimaryClassNodeOperation
extends CompilationUnit.PhaseOperation
Performs an operation for each primary class node in the compilation.
| Type Params | Return Type | Name and description |
|---|---|---|
|
public void |
call(SourceUnit source, GeneratorContext context, ClassNode classNode)Performs the operation for one primary class node. |
|
public void |
doPhaseOperation(CompilationUnit unit)A loop driver for applying operations to all primary ClassNodes in our AST. |
|
public boolean |
needSortedInput()Indicates whether primary classes should be sorted before visiting. |
| Methods inherited from class | Name |
|---|---|
interface CompilationUnit.PhaseOperation |
doPhaseOperation |
Performs the operation for one primary class node.
source - the source unit owning the classcontext - the current generator contextclassNode - the class node to processA loop driver for applying operations to all primary ClassNodes in our AST. Automatically skips units that have already been processed through the current phase.
Indicates whether primary classes should be sorted before visiting.
true if sorted input is required