[Java] Class DummyClassGenerator
- org.codehaus.groovy.classgen.DummyClassGenerator
public class DummyClassGenerator extends ClassGenerator
To generate a class that has all the fields and methods, except that fields are not initialized and methods are empty. It's intended for being used as a place holder during code generation of reference to the "this" class itself.
Fields inherited from class | Fields |
---|---|
class ClassGenerator | innerClasses |
Constructor Summary
Constructor and description |
---|
DummyClassGenerator
(GeneratorContext context, org.objectweb.asm.ClassVisitor classVisitor, ClassLoader classLoader, String sourceFile) |
Methods Summary
Type Params | Return Type | Name and description |
---|---|---|
protected CompileUnit |
getCompileUnit() | |
public void |
visitAnnotations(AnnotatedNode node) | |
public void |
visitClass(ClassNode classNode) | |
public void |
visitConstructor(ConstructorNode node) | |
public void |
visitField(FieldNode fieldNode) | |
public void |
visitMethod(MethodNode node) | |
protected void |
visitParameter(ASTNode node, Parameter parameter) | |
protected void |
visitParameters(ASTNode node, Parameter[] parameters) | |
public void |
visitProperty(PropertyNode statement) Creates a getter, setter and field |
Inherited Methods Summary
Constructor Detail
public DummyClassGenerator(GeneratorContext context, org.objectweb.asm.ClassVisitor classVisitor, ClassLoader classLoader, String sourceFile)
Method Detail
protected CompileUnit getCompileUnit()
public void visitAnnotations(AnnotatedNode node)
public void visitClass(ClassNode classNode)
public void visitConstructor(ConstructorNode node)
public void visitField(FieldNode fieldNode)
public void visitMethod(MethodNode node)
protected void visitParameter(ASTNode node, Parameter parameter)
protected void visitParameters(ASTNode node, Parameter[] parameters)
public void visitProperty(PropertyNode statement)
Creates a getter, setter and field
© 2003-2020 The Apache Software Foundation
Licensed under the Apache license.
https://docs.groovy-lang.org/3.0.7/html/gapi/org/codehaus/groovy/classgen/DummyClassGenerator.html