public class ASTInterpreter
extends java.lang.Object
| Constructor and Description |
|---|
ASTInterpreter() |
| Modifier and Type | Method and Description |
|---|---|
private static void |
blockPostTrace(Ruby runtime,
ThreadContext context,
java.lang.String name,
RubyModule implClass) |
private static void |
blockPreTrace(Ruby runtime,
ThreadContext context,
java.lang.String name,
RubyModule implClass) |
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,
java.lang.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) |
private static Block |
getBlockPassBlock(Node blockNode,
Ruby runtime,
ThreadContext context,
IRubyObject self,
Block currentBlock) |
static RubyModule |
getClassVariableBase(Ruby runtime,
StaticScope scope) |
static RubyModule |
getClassVariableBase(ThreadContext context,
Ruby runtime) |
private static Block |
getIterNodeBlock(Node blockNode,
ThreadContext context,
IRubyObject self) |
static IRubyObject |
INTERPRET_BLOCK(Ruby runtime,
ThreadContext context,
java.lang.String file,
int line,
Node node,
java.lang.String name,
IRubyObject self,
Block block) |
static IRubyObject |
INTERPRET_CLASS(Ruby runtime,
ThreadContext context,
Node node,
java.lang.String name,
IRubyObject self,
Block block) |
static IRubyObject |
INTERPRET_EVAL(Ruby runtime,
ThreadContext context,
Node node,
java.lang.String name,
IRubyObject self,
Block block) |
static IRubyObject |
INTERPRET_EVAL(Ruby runtime,
ThreadContext context,
java.lang.String file,
int line,
Node node,
java.lang.String name,
IRubyObject self,
Block block) |
static IRubyObject |
INTERPRET_METHOD(Ruby runtime,
ThreadContext context,
java.lang.String file,
int line,
RubyModule implClass,
Node node,
java.lang.String name,
IRubyObject self,
Block block,
boolean isTraceable) |
static IRubyObject |
INTERPRET_ROOT(Ruby runtime,
ThreadContext context,
Node node,
IRubyObject self,
Block block) |
private static void |
methodPostTrace(Ruby runtime,
ThreadContext context,
java.lang.String name,
RubyModule implClass) |
private static void |
methodPreTrace(Ruby runtime,
ThreadContext context,
java.lang.String name,
RubyModule implClass) |
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, java.lang.String file, int line, RubyModule implClass, Node node, java.lang.String name, IRubyObject self, Block block, boolean isTraceable)
public static IRubyObject INTERPRET_EVAL(Ruby runtime, ThreadContext context, Node node, java.lang.String name, IRubyObject self, Block block)
public static IRubyObject INTERPRET_EVAL(Ruby runtime, ThreadContext context, java.lang.String file, int line, Node node, java.lang.String name, IRubyObject self, Block block)
public static IRubyObject INTERPRET_CLASS(Ruby runtime, ThreadContext context, Node node, java.lang.String name, IRubyObject self, Block block)
public static IRubyObject INTERPRET_BLOCK(Ruby runtime, ThreadContext context, java.lang.String file, int line, Node node, java.lang.String name, IRubyObject self, Block block)
public static IRubyObject INTERPRET_ROOT(Ruby runtime, ThreadContext context, Node node, IRubyObject self, Block block)
private static void methodPreTrace(Ruby runtime, ThreadContext context, java.lang.String name, RubyModule implClass)
private static void methodPostTrace(Ruby runtime, ThreadContext context, java.lang.String name, RubyModule implClass)
private static void blockPreTrace(Ruby runtime, ThreadContext context, java.lang.String name, RubyModule implClass)
private static void blockPostTrace(Ruby runtime, ThreadContext context, java.lang.String name, RubyModule implClass)
@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, java.lang.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)
private static Block getBlockPassBlock(Node blockNode, Ruby runtime, ThreadContext context, IRubyObject self, Block currentBlock)
private static Block getIterNodeBlock(Node blockNode, ThreadContext context, IRubyObject self)
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)