1 26 27 package org.objectweb.openccm.generator.common.api; 28 29 30 31 import org.objectweb.openccm.ast.api.Declaration; 32 33 34 import org.objectweb.openccm.ast.api.Scope; 35 36 37 import java.util.List ; 38 39 40 import org.objectweb.openccm.generator.common.lib.GenerationException; 41 42 43 47 public interface GeneratorBase 48 extends org.objectweb.openccm.generator.common.api.Generator 49 { 50 53 public void 54 initialize(); 55 56 61 public org.objectweb.openccm.ast.api.AST 62 getAST(); 63 64 71 public boolean 72 isBusinessDeclaration(Declaration decl); 73 74 79 public void 80 visit(Declaration obj); 81 82 87 public void 88 visit_dep_tree(Declaration decl); 89 90 95 public void 96 visit_dep_tree(List childs); 97 98 103 public void 104 visit(List vect); 105 106 112 public void 113 visitContained(Declaration contained, String extension); 114 115 123 public Declaration 124 getDeclaration(String name) 125 throws GenerationException; 126 127 136 public Declaration 137 getDeclaration(Scope scope, String name) 138 throws GenerationException; 139 140 148 public List 149 getDeclarations(Scope scope, long limited_types) 150 throws GenerationException; 151 152 160 public List 161 getAllDeclarations(Scope scope, long limited_types) 162 throws GenerationException; 163 } 164 | Popular Tags |