1 24 25 package org.aspectj.compiler.base; 26 27 import org.aspectj.compiler.base.ast.*; 28 import org.aspectj.compiler.base.*; 29 30 31 import java.util.*; 32 33 public class TypeValidator extends AbstractCompilerPass implements WorldPass { 34 public TypeValidator(JavaCompiler compiler) { 35 super(compiler); 36 } 37 38 public void transformWorld() { 39 46 49 50 51 52 for (Iterator i = getWorld().sourceTypesIterator(); i.hasNext(); ) { 54 Type type = (Type)i.next(); 55 type.buildTypeGraph(); 56 } 57 58 getTypeManager().getObjectType().validateTypeGraph(); 60 61 for (Iterator i = getWorld().sourceTypesIterator(); i.hasNext(); ) { 63 Type type = (Type)i.next(); 64 type.finishTypeIntroductions(); 65 } 66 67 68 69 } 70 71 89 90 91 92 111 public String getDisplayName() { 112 return "building type graph"; 113 } 114 115 } 116 | Popular Tags |