home *** CD-ROM | disk | FTP | other *** search
- package com.netscape.javascript;
-
- public class Undefined implements Scriptable {
- public static final Scriptable instance = new Undefined();
- public static Object obj;
- // $FF: renamed from: id java.lang.Object
- public static Object field_0;
-
- public boolean hasInstance(Scriptable var1) {
- throw this.reportError();
- }
-
- public Object get(String var1, Scriptable var2) {
- throw this.reportError();
- }
-
- public Object get(int var1, Scriptable var2) {
- throw this.reportError();
- }
-
- public void put(String var1, Scriptable var2, Object var3) {
- throw this.reportError();
- }
-
- public void put(int var1, Scriptable var2, Object var3) {
- throw this.reportError();
- }
-
- public Object getDefaultValue(Class var1) {
- if (var1 == ScriptRuntime.StringClass) {
- return "undefined";
- } else if (var1 == ScriptRuntime.NumberClass) {
- return ScriptRuntime.NaNobj;
- } else {
- return var1 == ScriptRuntime.BooleanClass ? Boolean.FALSE : this;
- }
- }
-
- public Scriptable getPrototype() {
- throw this.reportError();
- }
-
- public void setPrototype(Scriptable var1) {
- throw this.reportError();
- }
-
- public short getAttributes(String var1, Scriptable var2) {
- throw this.reportError();
- }
-
- public Scriptable getParentScope() {
- throw this.reportError();
- }
-
- public void setParentScope(Scriptable var1) {
- throw this.reportError();
- }
-
- public short getAttributes(int var1, Scriptable var2) {
- throw this.reportError();
- }
-
- public void setAttributes(String var1, Scriptable var2, short var3) {
- throw this.reportError();
- }
-
- public void setAttributes(int var1, Scriptable var2, short var3) {
- throw this.reportError();
- }
-
- private RuntimeException reportError() {
- String var1;
- if (field_0 != null && obj != null) {
- Object[] var2 = new Object[]{field_0.toString(), obj.toString()};
- var1 = Context.getMessage("msg.undefined1", var2);
- } else {
- var1 = Context.getMessage("msg.undefined", (Object[])null);
- }
-
- return Context.reportRuntimeError(var1);
- }
-
- public boolean instanceOf(Scriptable var1) {
- return false;
- }
-
- public boolean has(String var1, Scriptable var2) {
- return false;
- }
-
- public boolean has(int var1, Scriptable var2) {
- return false;
- }
-
- public void delete(String var1) {
- throw this.reportError();
- }
-
- public void delete(int var1) {
- throw this.reportError();
- }
-
- public Object[] getIds() {
- throw this.reportError();
- }
-
- public String getClassName() {
- return "undefined";
- }
- }
-