Skip to content
Snippets Groups Projects
Commit 3de69b1d authored by Lukas Stadler's avatar Lukas Stadler
Browse files

HasSignature interface

parent ce98f851
Branches
No related tags found
No related merge requests found
......@@ -37,7 +37,7 @@ import com.oracle.truffle.r.runtime.env.frame.*;
* The base class for R code that can be executed, namely {@link FunctionDefinitionNode} and
* {@link RBuiltinNode}.
*/
public abstract class RRootNode extends RootNode {
public abstract class RRootNode extends RootNode implements HasSignature {
@CompilationFinal private StableValue<MaterializedFrame> enclosingFrameAssumption;
@CompilationFinal private StableValue<FrameDescriptor> enclosingFrameDescriptorAssumption;
......@@ -111,6 +111,10 @@ public abstract class RRootNode extends RootNode {
return formalArguments;
}
public ArgumentsSignature getSignature() {
return formalArguments.getSignature();
}
@TruffleBoundary
public String getSourceCode() {
SourceSection ss = getSourceSection();
......
/*
* Copyright (c) 2015, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
* under the terms of the GNU General Public License version 2 only, as
* published by the Free Software Foundation.
*
* This code is distributed in the hope that it will be useful, but WITHOUT
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
* version 2 for more details (a copy is included in the LICENSE file that
* accompanied this code).
*
* You should have received a copy of the GNU General Public License version
* 2 along with this work; if not, write to the Free Software Foundation,
* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
*
* Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
* or visit www.oracle.com if you need additional information or have any
* questions.
*/
package com.oracle.truffle.r.runtime;
public interface HasSignature {
ArgumentsSignature getSignature();
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment