1 26 27 package org.objectweb.openccm.command.lib; 28 29 import org.objectweb.util.cmdline.lib.DefaultCommandLine; 32 import org.objectweb.openccm.ast.api.FileScope; 33 34 41 42 public class IDL3Check 43 extends CompilerBase 44 implements org.objectweb.openccm.command.api.IDL3Check 45 { 46 52 58 59 public 60 IDL3Check() 61 { 62 super(new DefaultCommandLine("idl3_check", 64 "omg_idl_file", 65 "Compile and check an OMG IDL file", 66 true)); 67 } 68 69 75 81 87 94 public int 95 run(java.lang.String [] args) 96 { 97 String filename = args[0]; 98 99 if(!initAST()) 101 return -1; 102 103 FileScope fileScope = compile(filename); 105 if(fileScope == null) 106 return -1; 107 108 fileScope.destroy(); 110 111 return 0; 113 } 114 115 121 127 133 139 145 150 public static void 151 main(String [] args) 152 { 153 IDL3Check idl3_check = new IDL3Check(); 154 idl3_check.runMain(args); 155 } 156 } 157 | Popular Tags |