Top Description Methods
org.jruby.ast

public Interface IScopedNode

Known Direct Implementers
org.jruby.ast.LocalAsgnNode, org.jruby.ast.LocalVarNode, org.jruby.ast.DAsgnNode, org.jruby.ast.DVarNode

A marker interface for scoped variables (which have an offset and depth).

Method Summary

Modifier and TypeMethod and Description
public int
getDepth()

How many scopes down we should look for this variable

public int
getIndex()

Which index (or slot) this variable is located at in the scope it is stored in.

Method Detail

getDepthback to summary
public int getDepth()

How many scopes down we should look for this variable

getIndexback to summary
public int getIndex()

Which index (or slot) this variable is located at in the scope it is stored in.