comparison graal/com.oracle.truffle.codegen.processor/src/com/oracle/truffle/codegen/processor/template/TemplateMethod.java @ 8251:cb70ed101b5f

Added automatic generation of generic specialization which throws unsupported operation if reached.
author Christian Humer <christian.humer@gmail.com>
date Wed, 13 Mar 2013 11:32:43 +0100
parents 703c09f8640c
children 0905d796944a
comparison
equal deleted inserted replaced
8250:edc414f52e2b 8251:cb70ed101b5f
117 public ExecutableElement getMethod() { 117 public ExecutableElement getMethod() {
118 return method; 118 return method;
119 } 119 }
120 120
121 public String getMethodName() { 121 public String getMethodName() {
122 return getMethod().getSimpleName().toString(); 122 if (getMethod() != null) {
123 return getMethod().getSimpleName().toString();
124 } else {
125 return "$synthetic";
126 }
123 } 127 }
124 128
125 public AnnotationMirror getMarkerAnnotation() { 129 public AnnotationMirror getMarkerAnnotation() {
126 return markerAnnotation; 130 return markerAnnotation;
127 } 131 }