public abstract class CloneInfo
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
protected java.util.Map<Label,Label> |
labelRenameMap |
protected IRScope |
scope |
protected java.util.Map<Variable,Variable> |
variableRenameMap |
Modifier | Constructor and Description |
---|---|
protected |
CloneInfo(IRScope scope) |
Modifier and Type | Method and Description |
---|---|
SimpleCloneInfo |
cloneForCloningClosure(IRClosure clonedClosure) |
Label |
getRenamedLabel(Label label)
Return a new instance of a label for the newly cloned scope.
|
protected abstract Label |
getRenamedLabelSimple(Label l) |
protected abstract Variable |
getRenamedSelfVariable(Variable self)
How do we rename %self?
|
Variable |
getRenamedVariable(Variable variable)
Return a new instance of a variable for the newly cloned scope.
|
protected abstract Variable |
getRenamedVariableSimple(Variable variable)
How are typical variables renamed if they were not yet found in the variable renaming map?
|
IRScope |
getScope() |
protected IRScope scope
protected CloneInfo(IRScope scope)
public SimpleCloneInfo cloneForCloningClosure(IRClosure clonedClosure)
public IRScope getScope()
public Label getRenamedLabel(Label label)
label
- to be renamed.protected abstract Variable getRenamedSelfVariable(Variable self)
self
- to be renamedprotected abstract Variable getRenamedVariableSimple(Variable variable)
variable
- to be renamedpublic Variable getRenamedVariable(Variable variable)
variable
- to be renamedCopyright © 2001-2020 JRuby. All Rights Reserved.