Examples of AnyFunction


Examples of anvil.core.runtime.AnyFunction

  public void setDocumentLocator(Locator locator)
  {
    _locator = locator;
    if (_setDocumentLocator != null) {
      _setDocumentLocator.execute(_context, new AnyFunction(this), _userdata);
   
  }
View Full Code Here

Examples of anvil.core.runtime.AnyFunction

  public void setDocumentLocator(Locator locator)
  {
    _locator = locator;
    if (_setDocumentLocator != null) {
      _setDocumentLocator.execute(_context, new AnyFunction(this), _userdata);
   
  }
View Full Code Here

Examples of anvil.core.runtime.AnyFunction

  public static final Object[] p_getFunction = { null, "*frame", new Integer(-1) };
  public static final Any getFunction(Context context, int frame)
  {
    context.checkAccess(CAN_READ);
    if (frame == -1) {
      return new AnyFunction(context.frame().getFunction());
    } else {
      if (frame >= 0 && frame < context.size()) {
        return new AnyFunction(context.peek(frame).getFunction());
      }
    }
    return Any.UNDEFINED;
  }
View Full Code Here

Examples of anvil.core.runtime.AnyFunction

  protected CompilableFunction onFunction(Method method, String name, Object[] parameters, Doc doc)
  {
    CompilableFunction function = new FunctionBase(this, method, name, parameters, doc);
    putstatic(_class, "f_" + name, function);
    putstatic(_class, "F_" + name, new AnyFunction(function));
    declare(function);
    return function;
  }
View Full Code Here

Examples of anvil.core.runtime.AnyFunction

  protected MethodType onMethod(Method method, String name, Object[] parameters, Doc doc)
  {
    MethodType function = new MethodBase(this, method, name, parameters, doc);
    putstatic(_class, "m_" + name, function);
    putstatic(_class, "M_" + name, new AnyFunction(function));
    declare(function);
    return function;
  }
View Full Code Here

Examples of anvil.core.runtime.AnyFunction

  protected MethodType onInterfaceMethod(Method method, String name, Object[] parameters, Doc doc)
  {
    MethodType function = new InterfaceMethodBase(this, method, name, parameters, doc);
    putstatic(_class, "m_" + name, function);
    putstatic(_class, "M_" + name, new AnyFunction(function));
    declare(function);
    return function;
  }
View Full Code Here

Examples of anvil.core.runtime.AnyFunction

  protected MethodType onConstructor(Method method, Constructor constructor, String name, Object[] parameters, Doc doc)
  {
    MethodType function = new ConstructorBase(this, constructor, method, name, parameters, doc);
    putfield(_class, null, "m_" + name, function);
    putfield(_class, null, "M_" + name, new AnyFunction(function))
    declare(function);
    return function;
  }
View Full Code Here

Examples of anvil.core.runtime.AnyFunction

  public Any getFunction(Context context, String name)
  {
    Type type = (Type)_types.get(name);
    if (type != null) {
      if (type.getType() == FUNCTION) {
        return new AnyFunction((Function)type);
      }
    }
    throw context.NoSuchFunction(_name + '.' + name);
  }
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.