1 26 27 package org.objectweb.openccm.command.lib; 28 29 import org.objectweb.openccm.command.api.CommandOnAST; 31 import org.objectweb.util.cmdline.api.CommandLine; 32 33 41 42 public abstract class CommandOnASTBase 43 extends CommandOnIR3Base 44 implements CommandOnAST 45 { 46 52 53 private org.objectweb.openccm.ast.api.AST ast_; 54 55 61 66 public 67 CommandOnASTBase(CommandLine commandLine) 68 { 69 super(commandLine); 71 72 ast_ = null; 74 } 75 76 82 88 94 100 106 111 public boolean 112 initAST() 113 { 114 if(!checkComponentRepository()) 116 return false; 117 118 ast_ = new org.objectweb.openccm.ast.lib.Repository(getComponentRepository()); 120 121 return true; 122 } 123 124 129 public org.objectweb.openccm.ast.api.AST 130 getAST() 131 { 132 return ast_; 133 } 134 135 } 141 | Popular Tags |