public class ASTInterpreter extends Object
Constructor and Description |
---|
ASTInterpreter() |
Modifier and Type | Method and Description |
---|---|
static void |
callTraceFunction(Ruby runtime,
ThreadContext context,
RubyEvent event) |
static IRubyObject |
evalClassDefinitionBody(Ruby runtime,
ThreadContext context,
StaticScope scope,
Node bodyNode,
RubyModule type,
IRubyObject self,
Block block)
Evaluates the body in a class or module definition statement.
|
static IRubyObject |
evalSimple(ThreadContext context,
IRubyObject self,
RubyString src,
String file,
int lineNumber)
Evaluate the given string.
|
static IRubyObject |
evalWithBinding(ThreadContext context,
IRubyObject src,
Binding binding)
Deprecated.
|
static IRubyObject |
evalWithBinding(ThreadContext context,
IRubyObject self,
IRubyObject src,
Binding binding)
Evaluate the given string under the specified binding object.
|
static RubyString |
getArgumentDefinition(Ruby runtime,
ThreadContext context,
Node node,
RubyString type,
IRubyObject self,
Block block) |
static Block |
getBlock(Ruby runtime,
ThreadContext context,
IRubyObject self,
Block currentBlock,
Node blockNode) |
static RubyModule |
getClassVariableBase(Ruby runtime,
StaticScope scope) |
static RubyModule |
getClassVariableBase(ThreadContext context,
Ruby runtime) |
static IRubyObject |
INTERPRET_BLOCK(Ruby runtime,
ThreadContext context,
String file,
int line,
Node node,
String name,
IRubyObject self,
Block block) |
static IRubyObject |
INTERPRET_CLASS(Ruby runtime,
ThreadContext context,
Node node,
String name,
IRubyObject self,
Block block) |
static IRubyObject |
INTERPRET_EVAL(Ruby runtime,
ThreadContext context,
Node node,
String name,
IRubyObject self,
Block block) |
static IRubyObject |
INTERPRET_EVAL(Ruby runtime,
ThreadContext context,
String file,
int line,
Node node,
String name,
IRubyObject self,
Block block) |
static IRubyObject |
INTERPRET_METHOD(Ruby runtime,
ThreadContext context,
String file,
int line,
RubyModule implClass,
Node node,
String name,
IRubyObject self,
Block block,
boolean isTraceable) |
static IRubyObject |
INTERPRET_ROOT(Ruby runtime,
ThreadContext context,
Node node,
IRubyObject self,
Block block) |
static IRubyObject |
multipleAsgnArrayNode(Ruby runtime,
ThreadContext context,
MultipleAsgnNode iVisited,
ArrayNode node,
IRubyObject self,
Block aBlock) |
static IRubyObject |
pollAndReturn(ThreadContext context,
IRubyObject result) |
static IRubyObject[] |
setupArgs(Ruby runtime,
ThreadContext context,
Node node,
IRubyObject self,
Block aBlock) |
public static IRubyObject INTERPRET_METHOD(Ruby runtime, ThreadContext context, String file, int line, RubyModule implClass, Node node, String name, IRubyObject self, Block block, boolean isTraceable)
public static IRubyObject INTERPRET_EVAL(Ruby runtime, ThreadContext context, Node node, String name, IRubyObject self, Block block)
public static IRubyObject INTERPRET_EVAL(Ruby runtime, ThreadContext context, String file, int line, Node node, String name, IRubyObject self, Block block)
public static IRubyObject INTERPRET_CLASS(Ruby runtime, ThreadContext context, Node node, String name, IRubyObject self, Block block)
public static IRubyObject INTERPRET_BLOCK(Ruby runtime, ThreadContext context, String file, int line, Node node, String name, IRubyObject self, Block block)
public static IRubyObject INTERPRET_ROOT(Ruby runtime, ThreadContext context, Node node, IRubyObject self, Block block)
@Deprecated public static IRubyObject evalWithBinding(ThreadContext context, IRubyObject src, Binding binding)
public static IRubyObject evalWithBinding(ThreadContext context, IRubyObject self, IRubyObject src, Binding binding)
context
- the thread context for the current threadself
- the self against which eval was called; used as self in the eval in 1.9 modesrc
- The string containing the text to be evaluatedbinding
- The binding object under which to perform the evaluationpublic static IRubyObject evalSimple(ThreadContext context, IRubyObject self, RubyString src, String file, int lineNumber)
context
- the current thread's contextself
- the self to evaluate undersrc
- The string containing the text to be evaluatedfile
- The filename to use when reporting errors during the evaluationlineNumber
- that the eval supposedly starts frompublic static void callTraceFunction(Ruby runtime, ThreadContext context, RubyEvent event)
public static IRubyObject pollAndReturn(ThreadContext context, IRubyObject result)
public static IRubyObject multipleAsgnArrayNode(Ruby runtime, ThreadContext context, MultipleAsgnNode iVisited, ArrayNode node, IRubyObject self, Block aBlock)
public static IRubyObject evalClassDefinitionBody(Ruby runtime, ThreadContext context, StaticScope scope, Node bodyNode, RubyModule type, IRubyObject self, Block block)
public static RubyString getArgumentDefinition(Ruby runtime, ThreadContext context, Node node, RubyString type, IRubyObject self, Block block)
public static Block getBlock(Ruby runtime, ThreadContext context, IRubyObject self, Block currentBlock, Node blockNode)
public static RubyModule getClassVariableBase(ThreadContext context, Ruby runtime)
public static RubyModule getClassVariableBase(Ruby runtime, StaticScope scope)
public static IRubyObject[] setupArgs(Ruby runtime, ThreadContext context, Node node, IRubyObject self, Block aBlock)
Copyright © 2001-2014 JRuby. All Rights Reserved.