this.xwt = xwt;
this.myStatic = myStatic;
}
- public boolean isTransparent() { return true; }
public Object get(Object key) {
if (super.has(key)) return super.get(key);
if (key.equals("xwt")) return xwt;
public static class Scope extends ScopeImpl {
public Scope(Scope parentScope) { this(parentScope, false); }
public Scope(Scope parentScope, boolean sealed) { super(parentScope, sealed); }
- public boolean isTransparent() { return super.isTransparent(); } //< transparent scopes are not returned by THIS
public boolean has(Object key) { return super.has(key); }
public Object get(Object key) { return super._get(key); }
public Object put(Object key, Object val) { super._put(key, val); return null; }
case 'n': return s.equals("null") ? NULL : -1;
case 't': c=s.charAt(3);
if (c=='e') { if (s.charAt(2)=='u' && s.charAt(1)=='r') return TRUE; }
- else if (c=='s') { if (s.charAt(2)=='i' && s.charAt(1)=='h') return THIS; }
return -1;
case 'w': if (s.equals("with")) return RESERVED; else return -1;
case 'v': if (s.equals("void")) return RESERVED; else return -1;
// all of these simply push values onto the stack
case NUMBER: b.add(parserLine, LITERAL, number); break;
case STRING: b.add(parserLine, LITERAL, string); break;
- case THIS: b.add(parserLine, TOPSCOPE, null); break;
case NULL: b.add(parserLine, LITERAL, null); break;
case TRUE: case FALSE: b.add(parserLine, LITERAL, new Boolean(tok == TRUE)); break;