[Java] Class GenericsVisitor
- org.codehaus.groovy.control.GenericsVisitor
Verify correct usage of generics. This includes:
- class header (class and superclass declaration)
- arity of type parameters for fields, parameters, local variables
- invalid diamond
<>
usage
Constructor Summary
Constructor and description |
---|
GenericsVisitor
(SourceUnit source) |
Methods Summary
Type Params | Return Type | Name and description |
---|---|---|
protected SourceUnit |
getSourceUnit() | |
void |
visitClass(ClassNode node) | |
void |
visitConstructorCallExpression(ConstructorCallExpression call) | |
void |
visitDeclarationExpression(DeclarationExpression expression) | |
void |
visitField(FieldNode node) | |
void |
visitMethod(MethodNode node) |
Inherited Methods Summary
Constructor Detail
public GenericsVisitor(SourceUnit source)
Method Detail
protected SourceUnit getSourceUnit()
@Override public void visitClass(ClassNode node)
@Override public void visitConstructorCallExpression(ConstructorCallExpression call)
@Override public void visitDeclarationExpression(DeclarationExpression expression)
@Override public void visitField(FieldNode node)
@Override public void visitMethod(MethodNode node)
© 2003-2020 The Apache Software Foundation
Licensed under the Apache license.
https://docs.groovy-lang.org/2.5.14/html/gapi/org/codehaus/groovy/control/GenericsVisitor.html