org.jruby.ir.operands.Reference Maven / Gradle / Ivy
package org.jruby.ir.operands;
import org.jruby.ir.transformations.inlining.InlinerInfo;
import java.util.List;
// A ruby value that is not a local variable
// (method name, symbol, global var, $ vars)
public abstract class Reference extends Operand {
final private String name;
public Reference(String name) {
this.name = name;
}
public String getName() {
return name;
}
@Override
public void addUsedVariables(List l) {
/* Nothing to do */
}
@Override
public Operand cloneForInlining(InlinerInfo ii) {
return this;
}
@Override
public String toString() {
return name;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy