| package org.eclipse.e4.languages.javascript.rhino.jsdi; |
| |
| import org.eclipse.e4.languages.javascript.jsdi.StackFrame; |
| import org.eclipse.e4.languages.javascript.jsdi.Variable; |
| |
| public class VariableImpl extends MirrorImpl implements Variable { |
| |
| private String name; |
| private Number ref; |
| |
| public VariableImpl(VirtualMachineImpl vm, String name, Number ref) { |
| super(vm); |
| this.name = name; |
| this.ref = ref; |
| } |
| |
| public boolean isArgument() { |
| return false; |
| } |
| |
| public boolean isVisible(StackFrame frame) { |
| StackFrameImpl frameImpl = (StackFrameImpl) frame; |
| return frameImpl.isVisible(this); |
| } |
| |
| public String name() { |
| return name; |
| } |
| |
| public Number getRef() { |
| return ref; |
| } |
| |
| } |