public class ChildScopedBodyCompiler extends BaseBodyCompiler
argParamCount, currentLoopLabels, inNestedMethod, inRescue, inspector, invocationCompiler, method, methodName, redoJump, rubyName, scope, scopeEnd, scopeIndex, scopeStart, script, variableCompiler
Constructor and Description |
---|
ChildScopedBodyCompiler(StandardASMCompiler scriptCompiler,
String closureMethodName,
String rubyName,
ASTInspector inspector,
StaticScope scope,
int scopeIndex) |
Modifier and Type | Method and Description |
---|---|
void |
beginClass(CompilerCallback bodyPrep,
StaticScope scope) |
void |
beginMethod(CompilerCallback args,
StaticScope scope) |
protected void |
createVariableCompiler() |
void |
endBody()
End compilation for the method associated with the specified token.
|
protected int |
getActualArgsCount(StaticScope scope) |
protected String |
getSignature() |
boolean |
isSimpleRoot()
Return true if this method compiled is a "simple" root compiler, i.e.
|
void |
issueBreakEvent(CompilerCallback value) |
void |
issueNextEvent(CompilerCallback value) |
void |
issueRedoEvent() |
void |
loadBlock() |
ChainedChildBodyCompiler |
outline(String methodName) |
void |
performReturn()
Return the current value on the top of the stack, taking into consideration surrounding blocks.
|
aliasGlobal, appendByteList, appendObject, appendToArray, appendToObjectArray, aprintln, argsCat, argsCatToArguments, argsCatToArguments19, argsPush, aryToAry, assignClassVariable, assignClassVariable, assignConstantInCurrent, assignConstantInModule, assignConstantInObject, assignGlobalVariable, assignGlobalVariable, assignInstanceVariable, assignInstanceVariable, asString, attached, backref, backrefMethod, beginChainedMethod, buildNewString, callZSuper, chainToMethod, checkIsExceptionHandled, checkWhenWithSplat, clearErrorInfo, compileSequencedConditional, concatArrays, concatObjectArrays, consumeCurrentValue, convertToJavaArray, createDRegexp19, createEmptyArray, createEmptyHash, createNewArray, createNewArray, createNewBignum, createNewClosure, createNewClosure19, createNewEndBlock, createNewFixnum, createNewFloat, createNewForLoop, createNewHash, createNewHash19, createNewLambda, createNewLiteralArray, createNewLiteralHash, createNewRange, createNewRegexp, createNewRegexp, createNewString, createNewString, createNewSymbol, createNewSymbol, createObjectArray, declareClassVariable, declareClassVariable, defineAlias, defineClass, definedCall, definedNot, defineModule, defineNewMethod, duplicateCurrentValue, ensureMultipleAssignableRubyArray, ensureRubyArray, forEachInValueArray, forEachInValueArray, getClosureIndex, getCompiledClass, getDynamicScopeIndex, getExceptionIndex, getFirstTempIndex, getFrameKlazz, getFrameName, getInstanceVariable, getInvocationCompiler, getLastLine, getNativeMethodName, getNewEnding, getNewEnsureName, getNewRescueName, getPreviousExceptionIndex, getRubyName, getScopeIndex, getScriptCompiler, getVariableCompiler, getVarsArrayIndex, getVisibilityFor, go, hasBlock, ifNotNull, ifNotSuperMethodBound, ifNull, ifSingleton, invokeIRubyObject, invokeRuby, invokeThreadContext, invokeUtilityMethod, isCaptured, isClassVarDefined, isConstantBranch, isConstantDefined, isGlobalDefined, isInstanceOf, isInstanceVariableDefined, isMethodBound, isNil, isNotProtected, isNull, isPrivate, issueLoopBreak, issueLoopNext, issueLoopRedo, issueRetryEvent, isTrue, lineNumber, literal, literalSwitch, loadClass, loadCurrentModule, loadEncoding, loadException, loadFalse, loadFilename, loadNil, loadNull, loadObject, loadRuntime, loadSelf, loadStandardError, loadStaticScope, loadThis, loadThreadContext, loadTrue, mAssignConstantInCurrent, mAssignConstantInModule, mAssignConstantInObject, match, match2, match2Capture, match3, metaclass, negateCurrentValue, notIsModuleAndClassVarDefined, nthRef, nullToNil, performBackref, performBooleanBranch, performBooleanBranch2, performBooleanConstantBranch, performBooleanGlobalBranch, performBooleanLoop, performBooleanLoopLight, performBooleanLoopSafe, performEnsure, performLogicalAnd, performLogicalOr, performRescue, performRescueInternal, performRescueLight, pollThreadEvents, preMultiAssign, println, protect, pushByteList, pushDefinedMessage, pushNull, pushString, raiseTypeError, rescue, rethrowException, rethrowIfSystemExit, retrieveClassVariable, retrieveConstant, retrieveConstantFromModule, retrieveConstantFromObject, retrieveGlobalVariable, retrieveInstanceVariable, retrieveSelf, retrieveSelfClass, reverseValues, runBeginBlock, selfIsKindOf, setEnding, setLinePosition, shortcutAppend, shouldUseBoxedArgs, singlifySplattedValue, singlifySplattedValue19, splatCurrentValue, splatToArguments, splatToArguments19, storeExceptionInErrorInfo, storeNativeExceptionInErrorInfo, stringOrNil, stringToSymbol, superClass, swapValues, toJavaString, traceClass, traceEnd, traceLine, typeCheckBranch, undefMethod, unwrapPassedBlock, unwrapRaiseException, wrapJavaException, wrapJavaObject
public ChildScopedBodyCompiler(StandardASMCompiler scriptCompiler, String closureMethodName, String rubyName, ASTInspector inspector, StaticScope scope, int scopeIndex)
protected int getActualArgsCount(StaticScope scope)
getActualArgsCount
in class BaseBodyCompiler
protected String getSignature()
getSignature
in class BaseBodyCompiler
protected void createVariableCompiler()
createVariableCompiler
in class BaseBodyCompiler
public void beginMethod(CompilerCallback args, StaticScope scope)
beginMethod
in class BaseBodyCompiler
public void beginClass(CompilerCallback bodyPrep, StaticScope scope)
public ChainedChildBodyCompiler outline(String methodName)
outline
in interface BodyCompiler
outline
in class BaseBodyCompiler
public void endBody()
BodyCompiler
endBody
in interface BodyCompiler
endBody
in class BaseBodyCompiler
public void loadBlock()
loadBlock
in class BaseBodyCompiler
public void performReturn()
BodyCompiler
public void issueBreakEvent(CompilerCallback value)
public void issueNextEvent(CompilerCallback value)
public void issueRedoEvent()
public boolean isSimpleRoot()
BodyCompiler
Copyright © 2001-2017 JRuby. All Rights Reserved.