org.jruby.ast.executable
Class AbstractScript

java.lang.Object
  extended by org.jruby.ast.executable.AbstractScript
All Implemented Interfaces:
Script

public abstract class AbstractScript
extends java.lang.Object
implements Script

Author:
headius

Field Summary
 CallSite[] callSites
           
 int[] constantGenerations
           
 IRubyObject[] constants
           
 java.lang.String filename
           
 RubyFixnum[] fixnums
           
 RubySymbol[] symbols
           
 
Constructor Summary
AbstractScript()
           
 
Method Summary
 IRubyObject __file__(ThreadContext context, IRubyObject self, Block block)
           
 IRubyObject __file__(ThreadContext context, IRubyObject self, IRubyObject arg, Block block)
           
 IRubyObject __file__(ThreadContext context, IRubyObject self, IRubyObject arg1, IRubyObject arg2, Block block)
           
 IRubyObject __file__(ThreadContext context, IRubyObject self, IRubyObject arg1, IRubyObject arg2, IRubyObject arg3, Block block)
           
 CallSite getCallSite(int index)
           
 IRubyObject getConstant(ThreadContext context, java.lang.String name, int index)
           
 RubyFixnum getFixnum(Ruby runtime, int index, int value)
           
 RubyFixnum getFixnum(Ruby runtime, int index, long value)
           
 RubySymbol getSymbol(Ruby runtime, int index, java.lang.String name)
           
 IRubyObject getValue(ThreadContext context, java.lang.String name, int index)
           
 void initCallSites(int size)
           
 void initConstants(int size)
           
 void initFixnums(int size)
           
 void initSymbols(int size)
           
 IRubyObject load(ThreadContext context, IRubyObject self, IRubyObject[] args, Block block)
           
 IRubyObject reCache(ThreadContext context, java.lang.String name, int index)
           
 IRubyObject run(ThreadContext context, IRubyObject self, IRubyObject[] args, Block block)
           
static CallSite[] setCallSite(CallSite[] callSites, int index, java.lang.String name)
           
 void setFilename(java.lang.String filename)
           
static CallSite[] setFunctionalCallSite(CallSite[] callSites, int index, java.lang.String name)
           
static CallSite[] setVariableCallSite(CallSite[] callSites, int index, java.lang.String name)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.jruby.ast.executable.Script
__file__
 

Field Detail

callSites

public CallSite[] callSites

symbols

public RubySymbol[] symbols

fixnums

public RubyFixnum[] fixnums

filename

public java.lang.String filename

constants

public IRubyObject[] constants

constantGenerations

public int[] constantGenerations
Constructor Detail

AbstractScript

public AbstractScript()
Method Detail

__file__

public IRubyObject __file__(ThreadContext context,
                            IRubyObject self,
                            Block block)
Specified by:
__file__ in interface Script

__file__

public IRubyObject __file__(ThreadContext context,
                            IRubyObject self,
                            IRubyObject arg,
                            Block block)
Specified by:
__file__ in interface Script

__file__

public IRubyObject __file__(ThreadContext context,
                            IRubyObject self,
                            IRubyObject arg1,
                            IRubyObject arg2,
                            Block block)
Specified by:
__file__ in interface Script

__file__

public IRubyObject __file__(ThreadContext context,
                            IRubyObject self,
                            IRubyObject arg1,
                            IRubyObject arg2,
                            IRubyObject arg3,
                            Block block)
Specified by:
__file__ in interface Script

load

public IRubyObject load(ThreadContext context,
                        IRubyObject self,
                        IRubyObject[] args,
                        Block block)
Specified by:
load in interface Script

run

public IRubyObject run(ThreadContext context,
                       IRubyObject self,
                       IRubyObject[] args,
                       Block block)
Specified by:
run in interface Script

getCallSite

public final CallSite getCallSite(int index)

getSymbol

public final RubySymbol getSymbol(Ruby runtime,
                                  int index,
                                  java.lang.String name)

getFixnum

public final RubyFixnum getFixnum(Ruby runtime,
                                  int index,
                                  int value)

getFixnum

public final RubyFixnum getFixnum(Ruby runtime,
                                  int index,
                                  long value)

initCallSites

public final void initCallSites(int size)

initSymbols

public final void initSymbols(int size)

initFixnums

public final void initFixnums(int size)

initConstants

public final void initConstants(int size)

setCallSite

public static CallSite[] setCallSite(CallSite[] callSites,
                                     int index,
                                     java.lang.String name)

setFunctionalCallSite

public static CallSite[] setFunctionalCallSite(CallSite[] callSites,
                                               int index,
                                               java.lang.String name)

setVariableCallSite

public static CallSite[] setVariableCallSite(CallSite[] callSites,
                                             int index,
                                             java.lang.String name)

setFilename

public final void setFilename(java.lang.String filename)
Specified by:
setFilename in interface Script

getConstant

public final IRubyObject getConstant(ThreadContext context,
                                     java.lang.String name,
                                     int index)

getValue

public IRubyObject getValue(ThreadContext context,
                            java.lang.String name,
                            int index)

reCache

public IRubyObject reCache(ThreadContext context,
                           java.lang.String name,
                           int index)


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