org.jruby.evaluator
Class ASTInterpreter

java.lang.Object
  extended by org.jruby.evaluator.ASTInterpreter

public class ASTInterpreter
extends java.lang.Object


Constructor Summary
ASTInterpreter()
           
 
Method Summary
static RubyArray arrayValue(Ruby runtime, IRubyObject value)
          Deprecated. 
static IRubyObject aryToAry(IRubyObject value, Ruby runtime)
          Deprecated. 
static IRubyObject aryToAry(Ruby runtime, IRubyObject value)
          Deprecated. 
static IRubyObject aValueSplat(IRubyObject value, Ruby runtime)
          Deprecated. 
static IRubyObject aValueSplat(Ruby runtime, IRubyObject value)
          Deprecated. 
static void callTraceFunction(Ruby runtime, ThreadContext context, int event)
           
static IRubyObject eval(Ruby runtime, ThreadContext context, Node node, IRubyObject self, Block block)
          Deprecated. 
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, IRubyObject src, java.lang.String file, int lineNumber)
          Deprecated. Call with a RubyString now.
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, IRubyObject scope, java.lang.String file, int lineNumber)
          Evaluate the given string under the specified binding object.
static java.lang.String getArgumentDefinition(Ruby runtime, ThreadContext context, Node node, java.lang.String 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 java.lang.String getDefinition(Ruby runtime, ThreadContext context, Node node, IRubyObject self, Block aBlock)
          Deprecated. 
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)
           
static RubyArray splatValue(IRubyObject value, Ruby runtime)
          Deprecated. 
static RubyArray splatValue(Ruby runtime, IRubyObject value)
          Deprecated. 
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ASTInterpreter

public ASTInterpreter()
Method Detail

eval

@Deprecated
public static IRubyObject eval(Ruby runtime,
                                          ThreadContext context,
                                          Node node,
                                          IRubyObject self,
                                          Block block)
Deprecated. 


evalWithBinding

public static IRubyObject evalWithBinding(ThreadContext context,
                                          IRubyObject src,
                                          IRubyObject scope,
                                          java.lang.String file,
                                          int lineNumber)
Evaluate the given string under the specified binding object. If the binding is not a Proc or Binding object (RubyProc or RubyBinding) throw an appropriate type error.

Parameters:
context - TODO
evalString - The string containing the text to be evaluated
binding - The binding object under which to perform the evaluation
file - The filename to use when reporting errors during the evaluation
lineNumber - is the line number to pretend we are starting from
Returns:
An IRubyObject result from the evaluation

evalSimple

public static IRubyObject evalSimple(ThreadContext context,
                                     IRubyObject self,
                                     IRubyObject src,
                                     java.lang.String file,
                                     int lineNumber)
Deprecated. Call with a RubyString now.

Evaluate the given string.

Parameters:
context - TODO
evalString - The string containing the text to be evaluated
file - The filename to use when reporting errors during the evaluation
lineNumber - that the eval supposedly starts from
Returns:
An IRubyObject result from the evaluation

evalSimple

public static IRubyObject evalSimple(ThreadContext context,
                                     IRubyObject self,
                                     RubyString src,
                                     java.lang.String file,
                                     int lineNumber)
Evaluate the given string.

Parameters:
context - TODO
evalString - The string containing the text to be evaluated
file - The filename to use when reporting errors during the evaluation
lineNumber - that the eval supposedly starts from
Returns:
An IRubyObject result from the evaluation

callTraceFunction

public static void callTraceFunction(Ruby runtime,
                                     ThreadContext context,
                                     int event)

pollAndReturn

public static IRubyObject pollAndReturn(ThreadContext context,
                                        IRubyObject result)

multipleAsgnArrayNode

public static IRubyObject multipleAsgnArrayNode(Ruby runtime,
                                                ThreadContext context,
                                                MultipleAsgnNode iVisited,
                                                ArrayNode node,
                                                IRubyObject self,
                                                Block aBlock)

evalClassDefinitionBody

public 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.


getArgumentDefinition

public static java.lang.String getArgumentDefinition(Ruby runtime,
                                                     ThreadContext context,
                                                     Node node,
                                                     java.lang.String type,
                                                     IRubyObject self,
                                                     Block block)

getBlock

public static Block getBlock(Ruby runtime,
                             ThreadContext context,
                             IRubyObject self,
                             Block currentBlock,
                             Node blockNode)

getClassVariableBase

public static RubyModule getClassVariableBase(ThreadContext context,
                                              Ruby runtime)

getDefinition

@Deprecated
public static java.lang.String getDefinition(Ruby runtime,
                                                        ThreadContext context,
                                                        Node node,
                                                        IRubyObject self,
                                                        Block aBlock)
Deprecated. 


setupArgs

public static IRubyObject[] setupArgs(Ruby runtime,
                                      ThreadContext context,
                                      Node node,
                                      IRubyObject self,
                                      Block aBlock)

aValueSplat

@Deprecated
public static IRubyObject aValueSplat(Ruby runtime,
                                                 IRubyObject value)
Deprecated. 


arrayValue

@Deprecated
public static RubyArray arrayValue(Ruby runtime,
                                              IRubyObject value)
Deprecated. 


aryToAry

@Deprecated
public static IRubyObject aryToAry(Ruby runtime,
                                              IRubyObject value)
Deprecated. 


splatValue

@Deprecated
public static RubyArray splatValue(Ruby runtime,
                                              IRubyObject value)
Deprecated. 


splatValue

@Deprecated
public static RubyArray splatValue(IRubyObject value,
                                              Ruby runtime)
Deprecated. 


aValueSplat

@Deprecated
public static IRubyObject aValueSplat(IRubyObject value,
                                                 Ruby runtime)
Deprecated. 


aryToAry

@Deprecated
public static IRubyObject aryToAry(IRubyObject value,
                                              Ruby runtime)
Deprecated. 



Copyright © 2002-2007 JRuby Team. All Rights Reserved.