1999-05-25 21:50:03 +00:00
|
|
|
class JSIdentifier extends JSString {
|
|
|
|
|
|
|
|
JSIdentifier(String s)
|
|
|
|
{
|
|
|
|
super(s);
|
|
|
|
}
|
|
|
|
|
|
|
|
String print(String indent)
|
|
|
|
{
|
|
|
|
return indent + "JSIdentifier : " + s + "\n";
|
|
|
|
}
|
|
|
|
|
1999-05-28 19:00:48 +00:00
|
|
|
JSValue eval(Environment theEnv)
|
1999-05-25 21:50:03 +00:00
|
|
|
{
|
1999-05-28 19:00:48 +00:00
|
|
|
return theEnv.scope.getProp(theEnv, this);
|
1999-05-25 21:50:03 +00:00
|
|
|
}
|
|
|
|
|
1999-05-28 19:00:48 +00:00
|
|
|
JSReference evalLHS(Environment theEnv)
|
1999-05-25 21:50:03 +00:00
|
|
|
{
|
1999-05-28 19:00:48 +00:00
|
|
|
return new JSReference(theEnv.scope, this);
|
1999-05-25 21:50:03 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
}
|