public abstract class BaseVisitor extends ClassCodeVisitorSupport
Base class for ClassCodeVisitorSupport descendants. This class is used in groovy-contracts as root class for all code visitors directly used by global AST transformations.
Modifiers | Name | Description |
---|---|---|
static String |
GCONTRACTS_ENABLED_VAR |
|
protected SourceUnit |
sourceUnit |
Constructor and description |
---|
BaseVisitor(SourceUnit sourceUnit, ReaderSource source) |
Type Params | Return Type | Name and description |
---|---|---|
|
public static BooleanExpression |
asConditionExecution(AnnotationNode annotation) |
|
protected static ClosureExpression |
getOriginalCondition(AnnotationNode annotation) |
|
protected static Expression |
getReplacedCondition(AnnotationNode annotation) |
|
protected SourceUnit |
getSourceUnit() |
|
protected static void |
replaceCondition(AnnotationNode node, Expression expr) |
Copyright © 2003-2024 The Apache Software Foundation. All rights reserved.