/*
* $Id: CompiledNamespace.java,v 1.3 2002/09/16 08:05:04 jkl Exp $
*
* Copyright (c) 2002 Njet Communications Ltd. All Rights Reserved.
*
* Use is subject to license terms, as defined in
* Anvil Sofware License, Version 1.1. See LICENSE
* file, or http://njet.org/license-1.1.txt
*/
package anvil.script.compiler;
import java.io.IOException;
import java.lang.reflect.Field;
import java.lang.reflect.Method;
import java.util.Enumeration;
import anvil.core.Any;
import anvil.core.runtime.AnyType;
import anvil.core.runtime.AnyFunction;
import anvil.doc.Doc;
import anvil.script.Scope;
import anvil.script.CompilableFunction;
import anvil.script.ConstantVariableType;
import anvil.script.Type;
import anvil.script.MethodType;
import anvil.script.InterfaceType;
import anvil.script.InterfaceRef;
import anvil.java.util.Hashlist;
/**
* class CompiledNamespace
*
* @author: Jani Lehtim�ki
*/
public class CompiledNamespace extends CompiledScope
{
public CompiledNamespace(ClassLoader classloader, Scope parent, Class cls, String name, Doc document)
{
super(parent, cls, name, document);
try {
putstatic(cls, "_class", this);
putstatic(cls, "_type", new AnyType(this));
} catch (Exception e) {
anvil.Log.log().error("Namespace initialization failed: "+cls.getName(), e);
}
initializeMembers(classloader);
}
public int getType()
{
return NAMESPACE;
}
}