Mercurial > hg > graal-jvmci-8
comparison graal/com.oracle.truffle.codegen.processor/src/com/oracle/truffle/codegen/processor/template/MethodSpec.java @ 8245:703c09f8640c
Implemented support for @NodeClass annotation to support builtins.
author | Christian Humer <christian.humer@gmail.com> |
---|---|
date | Wed, 06 Mar 2013 18:32:33 +0100 |
parents | 6b74ffe38183 |
children | 8a1115c92271 |
comparison
equal
deleted
inserted
replaced
8244:10d37f893471 | 8245:703c09f8640c |
---|---|
22 */ | 22 */ |
23 package com.oracle.truffle.codegen.processor.template; | 23 package com.oracle.truffle.codegen.processor.template; |
24 | 24 |
25 import java.util.*; | 25 import java.util.*; |
26 | 26 |
27 import javax.lang.model.type.*; | |
28 | |
27 public class MethodSpec { | 29 public class MethodSpec { |
30 | |
31 private final List<TypeMirror> implicitTypes; | |
28 | 32 |
29 private final ParameterSpec returnType; | 33 private final ParameterSpec returnType; |
30 private final List<ParameterSpec> parameters; | 34 private final List<ParameterSpec> parameters; |
31 | 35 |
32 public MethodSpec(ParameterSpec returnType, List<ParameterSpec> parameters) { | 36 public MethodSpec(List<TypeMirror> prefixTypes, ParameterSpec returnType, List<ParameterSpec> parameters) { |
37 this.implicitTypes = prefixTypes; | |
33 this.returnType = returnType; | 38 this.returnType = returnType; |
34 this.parameters = parameters; | 39 this.parameters = parameters; |
40 } | |
41 | |
42 public List<TypeMirror> getImplicitTypes() { | |
43 return implicitTypes; | |
35 } | 44 } |
36 | 45 |
37 public ParameterSpec getReturnType() { | 46 public ParameterSpec getReturnType() { |
38 return returnType; | 47 return returnType; |
39 } | 48 } |