001package io.ebean.enhance.entity; 002 003import io.ebean.enhance.common.AnnotationInfo; 004 005public class MethodMeta { 006 007 private final String name; 008 private final String desc; 009 010 private final AnnotationInfo annotationInfo; 011 012 public MethodMeta(AnnotationInfo classAnnotationInfo, String name, String desc) { 013 this.annotationInfo = new AnnotationInfo(classAnnotationInfo); 014 this.name = name; 015 this.desc = desc; 016 } 017 018 @Override 019 public String toString() { 020 return name + " " + desc; 021 } 022 023 public boolean isMatch(String methodName, String methodDesc) { 024 return name.equals(methodName) && desc.equals(methodDesc); 025 } 026 027 public AnnotationInfo getAnnotationInfo() { 028 return annotationInfo; 029 } 030 031}