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, int access, String name, String desc){ 013 this.annotationInfo = new AnnotationInfo(classAnnotationInfo); 014 this.name = name; 015 this.desc = desc; 016 } 017 018 public String toString() { 019 return name+" "+desc; 020 } 021 022 public boolean isMatch(String methodName,String methodDesc){ 023 if (name.equals(methodName) && desc.equals(methodDesc)){ 024 return true; 025 } 026 return false; 027 } 028 029 public AnnotationInfo getAnnotationInfo() { 030 return annotationInfo; 031 } 032 033}