1 26 27 package org.objectweb.openccm.generator.translator.ast2idl.lib; 28 29 36 37 public class AST_PSDLTranslator 38 extends org.objectweb.openccm.generator.translator.ast2idl.lib.AST_IDLTranslator 39 implements org.objectweb.openccm.generator.translator.ast2idl.api.AST_PSDLTranslator 40 { 41 47 53 56 public 57 AST_PSDLTranslator() 58 { 59 super(); 60 keywords_.add("as"); 61 keywords_.add("factory"); 62 keywords_.add("implements"); 63 keywords_.add("key"); 64 keywords_.add("of"); 65 keywords_.add("primary"); 66 keywords_.add("ref"); 67 keywords_.add("scope"); 68 keywords_.add("state"); 69 keywords_.add("storagehome"); 70 keywords_.add("storagetype"); 71 keywords_.add("stores"); 72 keywords_.add("strong"); 73 } 74 75 81 87 94 public String 95 toPSDL(org.objectweb.openccm.ast.api.PsdlTypeRef type) 96 { 97 org.objectweb.openccm.ast.api.TypeRef idl_type = null; 98 org.objectweb.openccm.ast.api.StorageTypeBase st_base = null; 99 100 if (type == null) 101 { 102 return ""; 103 } 104 idl_type = type.getTypeRef(); 105 if (idl_type != null) 106 { 107 return toIDL(idl_type); 108 } 109 else 110 { st_base = type.getStorageTypeBase(); 112 return getAbsoluteName(st_base); 113 } 114 } 115 } 116 | Popular Tags |