Package anvil.core.runtime

Examples of anvil.core.runtime.AnyType$TypeEnumeration


  public final Any getType(Context context, String name)
  {
    Type type = (Type)_types.get(name);
    if (type != null) {
      return new AnyType(type);
    }
    throw context.NoSuchEntity(name + '@' + _name);
  }
View Full Code Here


  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);
  }
View Full Code Here

        Class icls = classloader.loadClass(bases[i]);
        _interfaces[i] = new DelayedInterfaceRef(icls);
     

      putstatic(cls, "_class", this);     
      putstatic(cls, "_type"new AnyType(this));

    } catch (Throwable t) {
      anvil.Log.log().error("Class initialization failed: "+cls.getName(), t);
    }     
View Full Code Here

  public Any getMemberType(Context context, String member)
  {
    Type type = (Type)_types.get(member);
    if (type != null && type.getType() == MEMBER_VARIABLE) {
      return new AnyType(type);
    }
    throw context.NoSuchEntity(_qname + '.' + member);
  }
View Full Code Here

        Class icls = classloader.loadClass(bases[i]);
        _bases[i] = new DelayedInterfaceRef(icls);
      }
     
      putstatic(cls, "_class", this);     
      putstatic(cls, "_type", new AnyType(this));
     
    } catch (Exception e) {
      anvil.Log.log().error("Interface initialization failed: "+cls.getName(), e);
    }
   
View Full Code Here


  public Any getWrapper()
  {
    if (_wrapper == null) {
      _wrapper =  new AnyType(this);
    }
    return _wrapper;
  }
View Full Code Here

  public Any getMethod(Context context, String name)
  {
    Type type = (Type)_types.get(name);
    if (type != null) {
      return new AnyType(type);
    }
    throw context.NoSuchEntity(_qname + '.' + name);
  }
View Full Code Here

  public Any getType(Context context, String name)
  {
    Type type = (Type)_types.get(name);
    if (type != null) {
      return new AnyType(type);
    }
    throw context.NoSuchEntity(_name + '.' + name);
  }
View Full Code Here

 

  public Any getWrapper()
  {
    if (_wrapper == null) {
      _wrapper =  new AnyType(this);
    }
    return _wrapper;   
  }
View Full Code Here

TOP

Related Classes of anvil.core.runtime.AnyType$TypeEnumeration

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.