1 26 27 package org.objectweb.openccm.generator.java.ast.lib; 28 29 import org.objectweb.openccm.generator.java.ast.api.MethodContent; 30 31 36 37 public class MethodContentImpl 38 implements MethodContent 39 { 40 46 47 private String macro_name_; 48 49 50 private org.apache.velocity.context.Context context_; 51 52 58 59 public 60 MethodContentImpl() 61 { 62 macro_name_ = null; 64 context_ = new org.apache.velocity.VelocityContext(); 65 } 66 67 73 79 85 90 public void 91 setMacro(String name) 92 { 93 macro_name_ = name; 94 } 95 96 101 public String 102 getMacro() 103 { 104 return macro_name_; 105 } 106 107 113 public void 114 addContextValue(String id, Object value) 115 { 116 context_.put(id, value); 117 } 118 119 124 public org.apache.velocity.context.Context 125 getContext() 126 { 127 return context_; 128 } 129 } 130 | Popular Tags |