public class AnnotationClosureVisitor
extends BaseVisitor
implements ASTNodeMetaData
Visits interfaces & classes and looks for @Requires or @Ensures and creates Closure classes for the annotation closures.
The annotation closure classes are used later on to check interface contract pre- and post-conditions in implementation classes.
| Modifiers | Name | Description |
|---|---|---|
static String |
META_DATA_ORIGINAL_TRY_CATCH_BLOCK |
|
static String |
META_DATA_USE_EXECUTION_TRACKER |
|
static String |
OLD_REFERENCES_KEY |
Node metadata key for the set of field names referenced via old.xxx in postconditions. |
| Fields inherited from class | Fields |
|---|---|
class BaseVisitor |
GCONTRACTS_ENABLED_VAR, sourceUnit |
| Constructor and description |
|---|
AnnotationClosureVisitor(SourceUnit sourceUnit, ReaderSource source) |
| Type Params | Return Type | Name and description |
|---|---|---|
|
public void |
visitClass(ClassNode classNode) |
|
public void |
visitConstructorOrMethod(MethodNode methodNode, boolean isConstructor) |
Node metadata key for the set of field names referenced via old.xxx in postconditions.
Copyright © 2003-2026 The Apache Software Foundation. All rights reserved.