use of org.mybatis.generator.eclipse.core.merge.visitors.MethodSignatureStringifier in project generator by mybatis.
the class ExistingJavaFileVisitor method visit.
/**
* Find the generated methods and delete them
*/
@Override
public boolean visit(MethodDeclaration node) {
if (isGenerated(node)) {
List<Annotation> annotations = retrieveAnnotations(node);
if (!annotations.isEmpty()) {
MethodSignatureStringifier mss = new MethodSignatureStringifier();
node.accept(mss);
String methodSignature = mss.toString();
methodAnnotations.put(methodSignature, annotations);
}
node.delete();
}
return false;
}
use of org.mybatis.generator.eclipse.core.merge.visitors.MethodSignatureStringifier in project generator by mybatis.
the class SummaryGatheringVisitor method visit.
@Override
public boolean visit(MethodDeclaration node) {
MethodSignatureStringifier visitor = new MethodSignatureStringifier();
node.accept(visitor);
methodSignatures.add(visitor.toString());
return false;
}
use of org.mybatis.generator.eclipse.core.merge.visitors.MethodSignatureStringifier in project generator by mybatis.
the class ExistingJavaFileVisitor method getMethodAnnotations.
public List<Annotation> getMethodAnnotations(MethodDeclaration methodDeclaration) {
MethodSignatureStringifier mss = new MethodSignatureStringifier();
methodDeclaration.accept(mss);
return methodAnnotations.get(mss.toString());
}
Aggregations