public class ClassCompletionVerifier
extends ClassCodeVisitorSupport
Checks that a class satisfies various conditions including:
| Constructor and description |
|---|
ClassCompletionVerifier(SourceUnit source)Creates a new class completion verifier. |
| Type Params | Return Type | Name and description |
|---|---|---|
|
public ClassNode |
getClassNode()Returns the class node currently being verified. |
|
protected SourceUnit |
getSourceUnit()* Provides access to the SourceUnit for error reporting during visitation. * Implementations must override this method. * *
|
|
public void |
visitBinaryExpression(BinaryExpression expression)* Visits a BinaryExpression, traversing left and right operand expressions. * *
|
|
public void |
visitCatchStatement(CatchStatement cs)* Visits a CatchStatement, processing variable annotations and invoking the statement hook. * *
|
|
public void |
visitClass(ClassNode node)* Visits a ClassNode, processing its annotations, package, imports, contents, and object initializers. * *
|
|
public void |
visitConstantExpression(ConstantExpression expression)* Visits a ConstantExpression. No traversal is performed as constants contain no child expressions. * *
|
|
public void |
visitConstructor(ConstructorNode node)* Visits a ConstructorNode, processing its annotations, parameter annotations, and code block. * *
|
|
public void |
visitDeclarationExpression(DeclarationExpression expression)* Visits a DeclarationExpression with annotation processing, traversing expression annotations * before delegating to parent traversal. * *
|
|
public void |
visitField(FieldNode node)* Visits a FieldNode, processing its annotations and initial value expression if present. * *
|
|
public void |
visitForLoop(ForStatement fs)* Visits a ForStatement, invoking statement hooks and processing loop variable annotations. * *
|
|
public void |
visitGStringExpression(GStringExpression expression)* Visits a GStringExpression, traversing string parts and interpolated value expressions. * *
|
|
public void |
visitMethod(MethodNode node)* Visits a MethodNode, processing its annotations, parameter annotations, and code block. * *
|
|
public void |
visitMethodCallExpression(MethodCallExpression mce)* Visits a MethodCallExpression, traversing the object expression, * method expression, and argument list. * *
|
|
public void |
visitProperty(PropertyNode node)* Visits a PropertyNode, processing its annotations, initial value expression, * and getter/setter blocks if present. * *
|
Creates a new class completion verifier.
source - the source unit to verifyReturns the class node currently being verified.
* Provides access to the SourceUnit for error reporting during visitation. * Implementations must override this method. * *
* Visits a BinaryExpression, traversing left and right operand expressions. * *
expression - the binary expression* Visits a CatchStatement, processing variable annotations and invoking the statement hook. * *
statement - the catch statement to visit* Visits a ClassNode, processing its annotations, package, imports, contents, and object initializers. * *
node - the class node to visit* Visits a ConstantExpression. No traversal is performed as constants contain no child expressions. * *
expression - the constant expression* Visits a ConstructorNode, processing its annotations, parameter annotations, and code block. * *
node - the constructor node to visit* Visits a DeclarationExpression with annotation processing, traversing expression annotations * before delegating to parent traversal. * *
expression - the declaration expression to visit* Visits a FieldNode, processing its annotations and initial value expression if present. * *
node - the field node to visit* Visits a ForStatement, invoking statement hooks and processing loop variable annotations. * *
statement - the for statement to visit* Visits a GStringExpression, traversing string parts and interpolated value expressions. * *
expression - the GString expression* Visits a MethodNode, processing its annotations, parameter annotations, and code block. * *
node - the method node to visit* Visits a MethodCallExpression, traversing the object expression, * method expression, and argument list. * *
call - the method call expression* Visits a PropertyNode, processing its annotations, initial value expression, * and getter/setter blocks if present. * *
node - the property node to visitCopyright © 2003-2026 The Apache Software Foundation. All rights reserved.