1 26 27 package org.objectweb.openccm.generator.psdl.lib; 28 29 import org.objectweb.openccm.ast.api.DeclarationKind; 31 32 33 public class PSDLGenerator 34 extends org.objectweb.openccm.generator.idl.lib.IDL3Generator 35 implements org.objectweb.openccm.generator.psdl.api.PSDLGenerator 36 { 37 38 44 49 50 public PSDLGenerator(org.objectweb.openccm.ast.api.AST ast) 51 { 52 super(ast); 54 55 translator_ = new org.objectweb.openccm.generator.translator.ast2idl.lib.AST_PSDLTranslator(); 57 } 58 59 65 68 public void 69 initialize(String outputfile, String app_name) 70 { 71 java.util.List list = new java.util.ArrayList (); 72 73 74 75 list.clear(); 77 list.add("org/objectweb/openccm/generator/common/common.vm"); 78 list.add("org/objectweb/openccm/generator/idl/idl3.vm"); 79 list.add("org/objectweb/openccm/generator/psdl/psdl.vm"); 80 setLibrary(list); 81 82 open(outputfile, "out"); 84 85 super.init(); 87 88 89 put("which", app_name); 90 put("gen", this); 91 put("translator", translator_); 92 put("declarator", ""); 93 put("limited_types" , new Long (org.objectweb.openccm.ast.api.DeclarationKind.dk_psdl)); 94 } 95 96 102 107 public long 108 forward_check() 109 { 110 return ( DeclarationKind.dk_abstract_storage_home + 111 DeclarationKind.dk_abstract_storage_type + 112 DeclarationKind.dk_storage_type ); 113 } 114 115 } 116 | Popular Tags |