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 @Override 019 public String toString() { 020 return name+" "+desc; 021 } 022 023 public boolean isMatch(String methodName,String methodDesc){ 024 if (name.equals(methodName) && desc.equals(methodDesc)){ 025 return true; 026 } 027 return false; 028 } 029 030 public AnnotationInfo getAnnotationInfo() { 031 return annotationInfo; 032 } 033 034}