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