use of com.oracle.truffle.dsl.processor.model.MethodSpec in project graal by oracle.
the class TypeCheckParser method createSpecification.
@Override
public MethodSpec createSpecification(ExecutableElement method, AnnotationMirror mirror) {
MethodSpec spec = new MethodSpec(new ParameterSpec("returnType", getContext().getType(boolean.class)));
spec.addRequired(new ParameterSpec("value", getContext().getType(Object.class)));
return spec;
}
use of com.oracle.truffle.dsl.processor.model.MethodSpec in project graal by oracle.
the class ImplicitCastParser method createSpecification.
@Override
public MethodSpec createSpecification(ExecutableElement method, AnnotationMirror mirror) {
MethodSpec spec = new MethodSpec(new ParameterSpec("target", getContext().getType(Object.class)));
spec.addRequired(new ParameterSpec("source", getContext().getType(Object.class))).setSignature(true);
return spec;
}
use of com.oracle.truffle.dsl.processor.model.MethodSpec in project graal by oracle.
the class NodeMethodParser method createDefaultMethodSpec.
@SuppressWarnings("unused")
protected final MethodSpec createDefaultMethodSpec(ExecutableElement method, AnnotationMirror mirror, boolean shortCircuitsEnabled, String shortCircuitName) {
MethodSpec methodSpec = new MethodSpec(createReturnParameterSpec());
addDefaultFrame(methodSpec);
addDefaultFieldMethodSpec(methodSpec);
addDefaultChildren(shortCircuitName, methodSpec);
return methodSpec;
}
Aggregations