org.mybatis.generator.eclipse.core.merge
Class ExistingJavaFileVisitor
java.lang.Object
ASTVisitor
org.mybatis.generator.eclipse.core.merge.ExistingJavaFileVisitor
public class ExistingJavaFileVisitor
- extends ASTVisitor
- Author:
- Jeff Butler
Method Summary |
boolean |
containsInnerClass(java.lang.String name)
|
java.util.List<Annotation> |
getFieldAnnotations(FieldDeclaration fieldDeclaration)
|
java.util.List<Annotation> |
getMethodAnnotations(MethodDeclaration methodDeclaration)
|
TypeDeclaration |
getTypeDeclaration()
|
boolean |
visit(EnumDeclaration node)
|
boolean |
visit(FieldDeclaration node)
Find the generated fields and delete them |
boolean |
visit(MethodDeclaration node)
Find the generated methods and delete them |
boolean |
visit(TypeDeclaration node)
Find any generated inner types and delete them |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ExistingJavaFileVisitor
public ExistingJavaFileVisitor(java.lang.String[] javadocTags)
visit
public boolean visit(FieldDeclaration node)
- Find the generated fields and delete them
visit
public boolean visit(MethodDeclaration node)
- Find the generated methods and delete them
visit
public boolean visit(TypeDeclaration node)
- Find any generated inner types and delete them
visit
public boolean visit(EnumDeclaration node)
getTypeDeclaration
public TypeDeclaration getTypeDeclaration()
containsInnerClass
public boolean containsInnerClass(java.lang.String name)
getFieldAnnotations
public java.util.List<Annotation> getFieldAnnotations(FieldDeclaration fieldDeclaration)
getMethodAnnotations
public java.util.List<Annotation> getMethodAnnotations(MethodDeclaration methodDeclaration)