Search in sources :

Example 1 with CachedParameterSpec

use of com.oracle.truffle.dsl.processor.model.CachedParameterSpec in project graal by oracle.

the class SpecializationMethodParser method createSpecification.

@Override
public MethodSpec createSpecification(ExecutableElement method, AnnotationMirror mirror) {
    MethodSpec spec = createDefaultMethodSpec(method, mirror, true, null);
    spec.getAnnotations().add(new CachedParameterSpec(getContext().getDeclaredType(Cached.class)));
    return spec;
}
Also used : CachedParameterSpec(com.oracle.truffle.dsl.processor.model.CachedParameterSpec) MethodSpec(com.oracle.truffle.dsl.processor.model.MethodSpec)

Aggregations

CachedParameterSpec (com.oracle.truffle.dsl.processor.model.CachedParameterSpec)1 MethodSpec (com.oracle.truffle.dsl.processor.model.MethodSpec)1