public class AnnotationContractParameterVisitor
extends BaseVisitor
This BaseVisitor walks up the class hierarchy for the given ClassNode and adds ContractElement annotations to method parameters.
| Fields inherited from class | Fields |
|---|---|
class BaseVisitor |
GCONTRACTS_ENABLED_VAR, sourceUnit |
| Constructor and description |
|---|
AnnotationContractParameterVisitor(SourceUnit sourceUnit, ReaderSource source)Creates a visitor that scans inherited method parameters for contract annotations. |
| Type Params | Return Type | Name and description |
|---|---|---|
|
public void |
visitAnnotations(AnnotatedNode node)Triggers contract-meta-annotation lookup for parameter annotations on the current method. |
|
public void |
visitClass(ClassNode node)Visits the class hierarchy and implemented interfaces of the supplied node. |
|
public void |
visitMethod(MethodNode node)Tracks the currently visited method so parameter annotations can be resolved in context. |
Creates a visitor that scans inherited method parameters for contract annotations.
sourceUnit - the source unit currently being transformedsource - the reader source backing the source unitTriggers contract-meta-annotation lookup for parameter annotations on the current method.
node - the annotated node being visitedVisits the class hierarchy and implemented interfaces of the supplied node.
node - the class to inspectTracks the currently visited method so parameter annotations can be resolved in context.
node - the method being visitedCopyright © 2003-2026 The Apache Software Foundation. All rights reserved.