Mercurial > hg > graal-compiler
comparison graal/com.oracle.truffle.codegen.processor/src/com/oracle/truffle/codegen/processor/ProcessorContext.java @ 7299:57edf6b07d36
Removed ANT_JAR_TOOL dependency. Eclipse jar builds are now calling the command 'mx jar ${projectName}'.
author | Christian Humer <christian.humer@gmail.com> |
---|---|
date | Wed, 02 Jan 2013 18:52:33 +0100 |
parents | a748e4d44694 |
children | 6343a09b2ec1 |
comparison
equal
deleted
inserted
replaced
7298:4d6d84714c17 | 7299:57edf6b07d36 |
---|---|
43 private final Map<String, Template> models = new HashMap<>(); | 43 private final Map<String, Template> models = new HashMap<>(); |
44 private final Map<String, Map<String, TypeMirror>> generatedClasses = new HashMap<>(); | 44 private final Map<String, Map<String, TypeMirror>> generatedClasses = new HashMap<>(); |
45 | 45 |
46 private final ProcessCallback callback; | 46 private final ProcessCallback callback; |
47 private final Log log; | 47 private final Log log; |
48 private final TruffleTypes truffleTypes; | 48 private TruffleTypes truffleTypes; |
49 | 49 |
50 public ProcessorContext(ProcessingEnvironment env, ProcessCallback callback) { | 50 public ProcessorContext(ProcessingEnvironment env, ProcessCallback callback) { |
51 this.environment = env; | 51 this.environment = env; |
52 this.callback = callback; | 52 this.callback = callback; |
53 this.log = new Log(environment); | 53 this.log = new Log(environment); |
54 this.truffleTypes = new TruffleTypes(this); | |
55 } | 54 } |
56 | 55 |
57 public TruffleTypes getTruffleTypes() { | 56 public TruffleTypes getTruffleTypes() { |
57 if (truffleTypes == null) { | |
58 truffleTypes = new TruffleTypes(this); | |
59 } | |
58 return truffleTypes; | 60 return truffleTypes; |
59 } | 61 } |
60 | 62 |
61 public Log getLog() { | 63 public Log getLog() { |
62 return log; | 64 return log; |