1 24 25 package org.aspectj.compiler.base; 26 27 import org.aspectj.compiler.base.ast.*; 28 29 52 53 public abstract class CompilerObject { 54 55 private final JavaCompiler compiler; 56 57 58 public CompilerObject(JavaCompiler compiler) { 59 this.compiler = compiler; 60 } 61 62 63 public final JavaCompiler getCompiler() { 64 return compiler; 65 } 66 67 70 public final World getWorld() { 71 return compiler.getWorld(); 72 } 73 74 79 public final TypeManager getTypeManager() { 80 return compiler.getTypeManager(); 81 } 82 83 84 public final Options getOptions() { 85 return compiler.getOptions(); 86 } 87 88 private SourceLocation mySource; 89 90 91 public AST getAST() { 92 if (mySource == null) mySource = new DummySourceLocation(compiler); 94 return new AST(new SyntheticSourceLocation(this)); 95 } 96 } 97 98 | Popular Tags |