public class AnnotationProcessorVisitor
extends BaseVisitor
Visits annotations of meta-type ContractElement and applies the AST transformations of the underlying AnnotationProcessor implementation.
| Fields inherited from class | Fields |
|---|---|
class BaseVisitor |
GCONTRACTS_ENABLED_VAR, sourceUnit |
| Constructor and description |
|---|
AnnotationProcessorVisitor(SourceUnit sourceUnit, ReaderSource source, ProcessingContextInformation pci)Creates a visitor that dispatches contract annotations to their registered processors. |
| Type Params | Return Type | Name and description |
|---|---|---|
|
public static AnnotationProcessor |
getAnnotationProcessor(String name)Instantiates the annotation processor with the supplied implementation class name. |
|
public void |
visitClass(ClassNode type)Processes contract annotations declared on the class, its methods, inherited interfaces, and relevant abstract base methods. |
Creates a visitor that dispatches contract annotations to their registered processors.
sourceUnit - the source unit currently being transformedsource - the reader source backing the source unitpci - per-class processing context shared across the contracts pipelineInstantiates the annotation processor with the supplied implementation class name.
name - the fully qualified processor class namenull if it could not be createdProcesses contract annotations declared on the class, its methods, inherited interfaces, and relevant abstract base methods.
type - the class currently being transformedCopyright © 2003-2026 The Apache Software Foundation. All rights reserved.