org.mybatis.generator.eclipse.core.merge
Class ExistingJavaFileVisitor

java.lang.Object
  extended by ASTVisitor
      extended by org.mybatis.generator.eclipse.core.merge.ExistingJavaFileVisitor

public class ExistingJavaFileVisitor
extends ASTVisitor

Author:
Jeff Butler

Constructor Summary
ExistingJavaFileVisitor(java.lang.String[] javadocTags)
           
 
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
 

Constructor Detail

ExistingJavaFileVisitor

public ExistingJavaFileVisitor(java.lang.String[] javadocTags)
Method Detail

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)