1 package org.apache.beehive.controls.runtime.generator; 2 19 20 import com.sun.mirror.declaration.*; 21 import org.apache.beehive.controls.runtime.generator.apt.TwoPhaseAnnotationProcessor; 22 23 27 public class AptOperation extends AptMethod 28 { 29 35 public AptOperation(AptControlInterface controlIntf, MethodDeclaration methodDecl, TwoPhaseAnnotationProcessor ap) 36 { 37 super(methodDecl, ap); 38 _controlIntf = controlIntf; 39 _operDecl = methodDecl; 40 } 41 42 43 46 public String getMethodField() 47 { 48 StringBuffer sb = new StringBuffer (); 49 sb.append("_"); 50 sb.append(getName()); 51 int methodIndex = getIndex(); 52 if (methodIndex != -1) 53 sb.append(methodIndex); 54 sb.append("Method"); 55 return sb.toString(); 56 } 57 58 61 public AptControlInterface getControlInterface() { return _controlIntf; } 62 63 MethodDeclaration _operDecl; 64 AptControlInterface _controlIntf; 65 } 66 | Popular Tags |