Package anvil.server

Examples of anvil.server.Address


    context.checkAccess(anvil.core.system.AnyConfigurable.CAN_READ);
    Type type = _type;
    while(type != null) {
      if (type instanceof Module) {
        Module script = (Module)type;
        Address addr = script.getAddress();
        if (addr != null) {
          return new anvil.core.system.AnyConfigurable(addr.getZone());
        }
      }
      type = type.getParent();
    }
    return UNDEFINED;
View Full Code Here


      boolean withStar)
  {
    ModuleStatement script = getModuleStatement();
    String pathinfo = script.getAddress().merge(href);
   
    Address address = null;
    try {
      address = script.getAddress().resolve(href);
    } catch (ZoneInactiveException e) {
      listener.error(location, "Target's zone is inactive: '" + href + "'");
    }
    if (address.equals(script.getAddress())) {
      listener.error(location, "Trying to import self: '" + href + "'");
      return;
    }
    if (as == null) {
      as = extractNameFromHref(address.getPathinfo());
    }
    if (!Grammar.isValidIdentifier(as)) {
      listener.error(location, "Identifier '" + as + "' is invalid");
    }      
    Import imprt = new Import(address, location, null,
View Full Code Here

  }
  

  public void addDependency(Import imprt)
  {
    Address addr = imprt.getAddress();
    if (addr != null) {
      _dependencies.put(addr, new Dependency(addr, null, imprt.getLocation()));
    }
  }
View Full Code Here

   
    if (source.equals(Modules.NAME)) {
      return zone.getModules();
    }

    Address importing = null;
   
    try {     
      importing = address().resolve(source);
    } catch (anvil.server.ZoneInactiveException e) {
      throw ImportError(e.getMessage(), null);
    }
   
    checkImport(frame().getPathinfo(), importing.getPathinfo());
   
    try {
      return zone.getServer().getCache().load(importing).getModule();
     
    } catch (ForgingException e) {
View Full Code Here

TOP

Related Classes of anvil.server.Address

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.