Mercurial Hosting > luan
view core/src/luan/impl/GetLocalVar.java @ 509:e3b0846dc2ef
throw exception for invalid indexes of string, binary, or java
author | Franklin Schmidt <fschmidt@gmail.com> |
---|---|
date | Fri, 22 May 2015 02:02:49 -0600 |
parents | b48cfa14ba60 |
children | 0742ac78fa69 |
line wrap: on
line source
package luan.impl; import luan.LuanElement; final class GetLocalVar extends CodeImpl implements Expr { private final int index; GetLocalVar(LuanElement se,int index) { super(se); this.index = index; } @Override public Object eval(LuanStateImpl luan) { return luan.stackGet(index); } }