org.jruby.compiler.impl
Class AbstractVariableCompiler
java.lang.Object
org.jruby.compiler.impl.AbstractVariableCompiler
- All Implemented Interfaces:
- VariableCompiler
- Direct Known Subclasses:
- HeapBasedVariableCompiler, StackBasedVariableCompiler
public abstract class AbstractVariableCompiler
- extends java.lang.Object
- implements VariableCompiler
- Author:
- headius
Method Summary |
void |
assignBackRef()
|
void |
assignLastLine()
|
void |
assignMethodArguments(java.lang.Object requiredArgs,
int requiredArgsCount,
java.lang.Object optArgs,
int optArgsCount,
ArrayCallback requiredAssignment,
ArrayCallback optGivenAssignment,
ArrayCallback optNotGivenAssignment,
CompilerCallback restAssignment,
CompilerCallback blockAssignment)
|
void |
checkMethodArity(int requiredArgs,
int optArgs,
int restArg)
|
SkinnyMethodAdapter |
getMethodAdapter()
|
void |
getTempLocal(int index)
|
int |
grabTempLocal()
|
void |
releaseTempLocal()
|
void |
retrieveBackRef()
|
void |
retrieveLastLine()
|
void |
setMethodAdapter(SkinnyMethodAdapter sma)
|
void |
setTempLocal(int index)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
method
protected SkinnyMethodAdapter method
methodCompiler
protected StandardASMCompiler.AbstractMethodCompiler methodCompiler
argsIndex
protected int argsIndex
closureIndex
protected int closureIndex
tempVariableIndex
protected int tempVariableIndex
arity
protected Arity arity
AbstractVariableCompiler
public AbstractVariableCompiler(StandardASMCompiler.AbstractMethodCompiler methodCompiler,
SkinnyMethodAdapter method,
int argsIndex,
int closureIndex,
int firstTempIndex)
getMethodAdapter
public SkinnyMethodAdapter getMethodAdapter()
- Specified by:
getMethodAdapter
in interface VariableCompiler
setMethodAdapter
public void setMethodAdapter(SkinnyMethodAdapter sma)
- Specified by:
setMethodAdapter
in interface VariableCompiler
assignLastLine
public void assignLastLine()
- Specified by:
assignLastLine
in interface VariableCompiler
retrieveLastLine
public void retrieveLastLine()
- Specified by:
retrieveLastLine
in interface VariableCompiler
assignBackRef
public void assignBackRef()
- Specified by:
assignBackRef
in interface VariableCompiler
retrieveBackRef
public void retrieveBackRef()
- Specified by:
retrieveBackRef
in interface VariableCompiler
checkMethodArity
public void checkMethodArity(int requiredArgs,
int optArgs,
int restArg)
- Specified by:
checkMethodArity
in interface VariableCompiler
assignMethodArguments
public void assignMethodArguments(java.lang.Object requiredArgs,
int requiredArgsCount,
java.lang.Object optArgs,
int optArgsCount,
ArrayCallback requiredAssignment,
ArrayCallback optGivenAssignment,
ArrayCallback optNotGivenAssignment,
CompilerCallback restAssignment,
CompilerCallback blockAssignment)
- Specified by:
assignMethodArguments
in interface VariableCompiler
grabTempLocal
public int grabTempLocal()
- Specified by:
grabTempLocal
in interface VariableCompiler
setTempLocal
public void setTempLocal(int index)
- Specified by:
setTempLocal
in interface VariableCompiler
getTempLocal
public void getTempLocal(int index)
- Specified by:
getTempLocal
in interface VariableCompiler
releaseTempLocal
public void releaseTempLocal()
- Specified by:
releaseTempLocal
in interface VariableCompiler
Copyright © 2002-2007 JRuby Team. All Rights Reserved.