|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.jruby.evaluator.ASTInterpreter
public class ASTInterpreter
Constructor Summary | |
---|---|
ASTInterpreter()
|
Method Summary | |
---|---|
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 org.jruby.util.ByteList |
getArgumentDefinition(Ruby runtime,
ThreadContext context,
Node node,
org.jruby.util.ByteList type,
IRubyObject self,
Block block)
|
static Block |
getBlock(Ruby runtime,
ThreadContext context,
IRubyObject self,
Block currentBlock,
Node blockNode)
|
static RubyModule |
getClassVariableBase(ThreadContext context,
Ruby runtime)
|
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)
|
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)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ASTInterpreter()
Method Detail |
---|
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)
@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 evaluation
public static IRubyObject evalSimple(ThreadContext context, IRubyObject self, RubyString src, java.lang.String file, int lineNumber)
context
- TODOevalString
- The string containing the text to be evaluatedfile
- The filename to use when reporting errors during the evaluationlineNumber
- that the eval supposedly starts from
public 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 org.jruby.util.ByteList getArgumentDefinition(Ruby runtime, ThreadContext context, Node node, org.jruby.util.ByteList 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 IRubyObject[] setupArgs(Ruby runtime, ThreadContext context, Node node, IRubyObject self, Block aBlock)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |