Examples of Any


Examples of anvil.core.Any

      _running = true;
    }
   
    try {
      context.push(this);
      Any next = _dispatcher.execute(context, _self, this);
      if (_state == -1) {
        _hasmore = false;
      }
      _next = next; 
View Full Code Here

Examples of anvil.core.Any

  }


  private Any getFunction(Context context, Any struct, String name)
  {
    Any value = struct.checkAttribute(context, name);
    if (!value.isNull() || !value.isUndefined()) {
      return value;
    }
    return null;
  }
View Full Code Here

Examples of anvil.core.Any

    if (attrs != null && attrs.isArray()) {
      BindingEnumeration e = ((Array)attrs).keysAndElements();
      while(e.hasMoreElements()) {
        tag.append(' ');
        tag.append(e.nextKey());
        Any value = Any.create(e.nextElement());
        if (!(value.isNull() || value.isUndefined())) {
          tag.append('=');
          tag.append('"');
          tag.append(value);
          tag.append('"');
        }
View Full Code Here

Examples of anvil.core.Any

    while(iter.hasNext()) {
      Case caze = (Case)iter.next();
      if (caze.isDefault()) {
        _jumptable.put(DEFAULT_MARKER, caze);
      } else {
        Any value = caze.getConstant();
        if (value != null) {
          if (_jumptable.containsKey(value)) {
            context.error(caze.getLocation(), "Case value duplicated");
          } else {
            _jumptable.put(value, caze);
View Full Code Here

Examples of anvil.core.Any

  }


  public Any eval()
  {
    Any left = _left.eval();
    if (left.toBoolean()) {
      return left;
    } else {
      return _right.eval();
    }
  }
View Full Code Here

Examples of anvil.core.Any

  private static final Any getCallback(Context context, Any handler, String name)
  {
    if (handler == null) {
      return null;
    }
    Any callable = handler.checkAttribute(context, name);
    if (!callable.isNull()) {
      return callable;
    } else {
      return null;
    }
  }
View Full Code Here

Examples of anvil.core.Any

 
 
  public void onTag(Tag tag)
  {
    Location loc = _locator.getLocation();
    Any line = Any.create(loc.getLine());
    Any column = Any.create(loc.getColumn());
   
    if (_on_tag_start != null) {
      _on_tag_start.execute(_context, line, column, Any.create(tag.getPrefixedName()));
    } else {          
      _context.print("<font color=\"#335577\">&lt;");
View Full Code Here

Examples of anvil.core.Any

 
   
  public void onCodeTag(Tag tag)
  {
    Location loc = _locator.getLocation();
    Any line = Any.create(loc.getLine());
    Any column = Any.create(loc.getColumn());
   
    if (_on_code_tag_start != null) {
      _on_code_tag_start.execute(_context, line, column, Any.create(tag.getPrefixedName()));
    } else {          
      _context.print("<strong><font color=\"#335577\">&lt;</font>");
View Full Code Here

Examples of anvil.core.Any

      return _nextElement.getName();
    }

    public Object nextElement()
    {
      Any value = _nextElement.getValue();
      forward();
      return value;
    }
View Full Code Here

Examples of anvil.core.Any


  public void run()
  {
    Context context = _context;
    Any callable = _callable;
    Any[] parameters = _parameters;
    if (context != null && callable != null && parameters != null) {
      context.join(Thread.currentThread());
      try {
        context.log().info("Executing function: "+_callable);
        Any rv = _callable.execute(context, parameters);
        context.log().info("Function "+_callable+" exited, return value: "+rv);
       
      } catch (ExitException e) {
        context.log().info("Explicit thread termination, exit value: "+e.getExitValue());
       
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.