Mercurial > hg > graal-jvmci-8
diff graal/com.oracle.truffle.dsl.processor/src/com/oracle/truffle/dsl/processor/TruffleTypes.java @ 18754:59bf50cc5a32
Truffle-DSL: implemented @GenerateNodeFactory to enable generation of factories. Factory generation is now disabled by default.
author | Christian Humer <christian.humer@gmail.com> |
---|---|
date | Mon, 29 Dec 2014 23:38:25 +0100 |
parents | b4e38f4ca414 |
children | ae81dd154fb6 |
line wrap: on
line diff
--- a/graal/com.oracle.truffle.dsl.processor/src/com/oracle/truffle/dsl/processor/TruffleTypes.java Mon Dec 29 23:38:21 2014 +0100 +++ b/graal/com.oracle.truffle.dsl.processor/src/com/oracle/truffle/dsl/processor/TruffleTypes.java Mon Dec 29 23:38:25 2014 +0100 @@ -69,6 +69,7 @@ private final DeclaredType nodeFactoryBase; private final DeclaredType dslMetadata; private final DeclaredType implies; + private final DeclaredType generateNodeFactory; private final TypeElement expectError; private final List<String> errors = new ArrayList<>(); @@ -98,6 +99,11 @@ dslMetadata = getRequired(context, DSLMetadata.class); implies = getRequired(context, Implies.class); expectError = (TypeElement) getRequired(context, ExpectError.class).asElement(); + generateNodeFactory = getRequired(context, GenerateNodeFactory.class); + } + + public DeclaredType getGenerateNodeFactory() { + return generateNodeFactory; } public DeclaredType getImplies() {