org.jruby.compiler.impl
Class InheritedCacheCompiler

java.lang.Object
  extended by org.jruby.compiler.impl.InheritedCacheCompiler
All Implemented Interfaces:
CacheCompiler

public class InheritedCacheCompiler
extends java.lang.Object
implements CacheCompiler

Author:
headius

Field Summary
protected  StandardASMCompiler scriptCompiler
           
 
Constructor Summary
InheritedCacheCompiler(StandardASMCompiler scriptCompiler)
           
 
Method Summary
 void cacheBigInteger(BaseBodyCompiler method, java.math.BigInteger bigint)
           
 void cacheByteList(BaseBodyCompiler method, org.jruby.util.ByteList contents)
           
 void cacheCallSite(BaseBodyCompiler method, java.lang.String name, CallType callType)
           
 void cacheClosure(BaseBodyCompiler method, java.lang.String closureMethod, int arity, StaticScope scope, java.lang.String file, int line, boolean hasMultipleArgsHead, NodeType argsNodeId, ASTInspector inspector)
           
 void cacheClosure19(BaseBodyCompiler method, java.lang.String closureMethod, int arity, StaticScope scope, java.lang.String file, int line, boolean hasMultipleArgsHead, NodeType argsNodeId, java.lang.String parameterList, ASTInspector inspector)
           
 void cacheConstant(BaseBodyCompiler method, java.lang.String constantName)
           
 void cacheConstantFrom(BaseBodyCompiler method, java.lang.String constantName)
           
 void cachedGetVariable(BaseBodyCompiler method, java.lang.String name)
           
 void cacheDRegexp(BaseBodyCompiler method, CompilerCallback createStringCallback, int options)
           
 void cachedSetVariable(BaseBodyCompiler method, java.lang.String name, CompilerCallback valueCallback)
           
 void cacheEncoding(BaseBodyCompiler method, org.jcodings.Encoding encoding)
           
 void cacheFixnum(BaseBodyCompiler method, long value)
           
 void cacheFloat(BaseBodyCompiler method, double value)
           
 void cacheMethod(BaseBodyCompiler method, java.lang.String methodName)
           
 void cacheMethod(BaseBodyCompiler method, java.lang.String methodName, int receiverLocal)
           
 void cacheRegexp(BaseBodyCompiler method, org.jruby.util.ByteList pattern, int options)
           
 void cacheSpecialClosure(BaseBodyCompiler method, java.lang.String closureMethod)
           
 void cacheStaticScope(BaseBodyCompiler method, StaticScope scope)
           
 void cacheString(BaseBodyCompiler method, org.jruby.util.ByteList contents, int codeRange)
           
 void cacheSymbol(BaseBodyCompiler method, java.lang.String symbol)
           
 void finish()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

scriptCompiler

protected StandardASMCompiler scriptCompiler
Constructor Detail

InheritedCacheCompiler

public InheritedCacheCompiler(StandardASMCompiler scriptCompiler)
Method Detail

cacheStaticScope

public void cacheStaticScope(BaseBodyCompiler method,
                             StaticScope scope)
Specified by:
cacheStaticScope in interface CacheCompiler

cacheCallSite

public void cacheCallSite(BaseBodyCompiler method,
                          java.lang.String name,
                          CallType callType)
Specified by:
cacheCallSite in interface CacheCompiler

cacheSymbol

public void cacheSymbol(BaseBodyCompiler method,
                        java.lang.String symbol)
Specified by:
cacheSymbol in interface CacheCompiler

cacheRegexp

public void cacheRegexp(BaseBodyCompiler method,
                        org.jruby.util.ByteList pattern,
                        int options)
Specified by:
cacheRegexp in interface CacheCompiler

cacheDRegexp

public void cacheDRegexp(BaseBodyCompiler method,
                         CompilerCallback createStringCallback,
                         int options)
Specified by:
cacheDRegexp in interface CacheCompiler

cacheFixnum

public void cacheFixnum(BaseBodyCompiler method,
                        long value)
Specified by:
cacheFixnum in interface CacheCompiler

cacheFloat

public void cacheFloat(BaseBodyCompiler method,
                       double value)
Specified by:
cacheFloat in interface CacheCompiler

cacheConstant

public void cacheConstant(BaseBodyCompiler method,
                          java.lang.String constantName)
Specified by:
cacheConstant in interface CacheCompiler

cacheConstantFrom

public void cacheConstantFrom(BaseBodyCompiler method,
                              java.lang.String constantName)
Specified by:
cacheConstantFrom in interface CacheCompiler

cacheString

public void cacheString(BaseBodyCompiler method,
                        org.jruby.util.ByteList contents,
                        int codeRange)
Specified by:
cacheString in interface CacheCompiler

cacheByteList

public void cacheByteList(BaseBodyCompiler method,
                          org.jruby.util.ByteList contents)
Specified by:
cacheByteList in interface CacheCompiler

cacheEncoding

public void cacheEncoding(BaseBodyCompiler method,
                          org.jcodings.Encoding encoding)
Specified by:
cacheEncoding in interface CacheCompiler

cacheBigInteger

public void cacheBigInteger(BaseBodyCompiler method,
                            java.math.BigInteger bigint)
Specified by:
cacheBigInteger in interface CacheCompiler

cachedGetVariable

public void cachedGetVariable(BaseBodyCompiler method,
                              java.lang.String name)
Specified by:
cachedGetVariable in interface CacheCompiler

cachedSetVariable

public void cachedSetVariable(BaseBodyCompiler method,
                              java.lang.String name,
                              CompilerCallback valueCallback)
Specified by:
cachedSetVariable in interface CacheCompiler

cacheClosure

public void cacheClosure(BaseBodyCompiler method,
                         java.lang.String closureMethod,
                         int arity,
                         StaticScope scope,
                         java.lang.String file,
                         int line,
                         boolean hasMultipleArgsHead,
                         NodeType argsNodeId,
                         ASTInspector inspector)
Specified by:
cacheClosure in interface CacheCompiler

cacheClosure19

public void cacheClosure19(BaseBodyCompiler method,
                           java.lang.String closureMethod,
                           int arity,
                           StaticScope scope,
                           java.lang.String file,
                           int line,
                           boolean hasMultipleArgsHead,
                           NodeType argsNodeId,
                           java.lang.String parameterList,
                           ASTInspector inspector)
Specified by:
cacheClosure19 in interface CacheCompiler

cacheSpecialClosure

public void cacheSpecialClosure(BaseBodyCompiler method,
                                java.lang.String closureMethod)
Specified by:
cacheSpecialClosure in interface CacheCompiler

cacheMethod

public void cacheMethod(BaseBodyCompiler method,
                        java.lang.String methodName)
Specified by:
cacheMethod in interface CacheCompiler

cacheMethod

public void cacheMethod(BaseBodyCompiler method,
                        java.lang.String methodName,
                        int receiverLocal)
Specified by:
cacheMethod in interface CacheCompiler

finish

public void finish()
Specified by:
finish in interface CacheCompiler


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