1 23 24 25 package com.sun.jdo.api.persistence.enhancer.impl; 26 27 import java.util.Map ; 28 34 35 import com.sun.jdo.api.persistence.enhancer.classfile.*; 36 37 import com.sun.jdo.api.persistence.enhancer.util.Support; 38 39 50 51 55 class MethodAction 56 extends Support { 59 60 61 89 90 91 private final ClassAction ca; 93 94 95 private final ClassMethod theMethod; 97 98 99 private final MethodAnnotater annotater; 101 102 103 private final Environment env; 106 107 111 boolean needsAnnotation() { 112 return annotater.needsAnnotation(); 113 } 114 115 118 ClassMethod method() { 119 return theMethod; 120 } 121 122 125 MethodAction(ClassAction ca, 127 ClassMethod method, 128 Environment env) { 129 this.ca = ca; 130 theMethod = method; 131 this.env = env; 132 annotater = new MethodAnnotater(ca, method, env); 133 } 134 135 138 void check() { 139 annotater.checkMethod(); 140 164 } 165 166 170 176 177 180 void annotate() { 181 annotater.annotateMethod(); 182 } 183 } 184 | Popular Tags |