Package uk.co.badgersinfoil.metaas.dom

Examples of uk.co.badgersinfoil.metaas.dom.ASMethod


    // TODO: does AS3 do overloading?  This method will be no use
    //       if it does.
    for (ASTIterator i=blockIter(); i.hasNext(); ) {
      LinkedListTree member = i.next();
      if (member.getType() == AS3Parser.METHOD_DEF) {
        ASMethod meth = new ASTASMethod(member);
        if (meth.getName().equals(name)) {
          return meth;
        }
      }
    }
    return null;
View Full Code Here


    // TODO: does AS3 do overloading?  This method will be no use
    //       if it does.
    for (ASTIterator i=blockIter(); i.hasNext(); ) {
      LinkedListTree member = i.next();
      if (member.getType() == AS3Parser.METHOD_DEF) {
        ASMethod meth = new ASTASMethod(member);
        if (meth.getName().equals(name)) {
          i.remove();
          return;
        }
      }
    }
View Full Code Here

  public void walk(ASClassType clazz) {
    visitor.visit(clazz);
    Iterator i;
    for (i=clazz.getMethods().iterator(); i.hasNext(); ) {
      ASMethod method = (ASMethod)i.next();
      walk((ASMember)method);
      walk(method);
    }
    for (i=clazz.getFields().iterator(); i.hasNext(); ) {
      ASField field = (ASField)i.next();
View Full Code Here

  public void walk(ASInterfaceType iface) {
    visitor.visit(iface);
    Iterator i;
    for (i=iface .getMethods().iterator(); i.hasNext(); ) {
      ASMethod method = (ASMethod)i.next();
      walk((ASMember)method);
      walk(method);
    }
  }
View Full Code Here

    if (baseType != Type.NULL) {
      proxyType.setSuperclass(baseType.getName());
      proxyImports.add(baseType.getName());
    }

    ASMethod callMethod = proxyType.newMethod(Constants.METHOD_CALL, Visibility.PROTECTED, "Object");
    callMethod.addParam("name", "String");
    callMethod.addParam("...args", null);
    callMethod.addStmt("throw new Error(\"Not Implemented\");");

    ASMethod resultMethod = proxyType.newMethod(Constants.METHOD_ON_RESULT, Visibility.PROTECTED, Type.VOID.getName());
    resultMethod.addParam("result", "Object");

    ASMethod statusMethod = proxyType.newMethod(Constants.METHOD_ON_STATUS, Visibility.PROTECTED, Type.VOID.getName());
    statusMethod.addParam("status", "Object");
  }
View Full Code Here

    if (baseType != Type.NULL) {
      proxyType.setSuperclass(baseType.getName());
      proxyImports.add(baseType.getName());
    }

    ASMethod callMethod = proxyType.newMethod(Constants.METHOD_CALL, Visibility.PROTECTED, "Object");
    callMethod.addParam("name", "String");
    callMethod.addParam("...args", null);
    callMethod.addStmt("throw new Error(\"Not Implemented\");");

    ASMethod resultMethod = proxyType.newMethod(Constants.METHOD_ON_RESULT, Visibility.PROTECTED, Type.VOID.getName());
    resultMethod.addParam("result", "Object");

    ASMethod statusMethod = proxyType.newMethod(Constants.METHOD_ON_STATUS, Visibility.PROTECTED, Type.VOID.getName());
    statusMethod.addParam("status", "Object");
  }
View Full Code Here

    if (baseType != Type.NULL) {
      proxyType.setSuperclass(baseType.getName());
      proxyImports.add(baseType.getName());
    }

    ASMethod callMethod = proxyType.newMethod(Constants.METHOD_CALL, Visibility.PROTECTED, "Object");
    callMethod.addParam("name", "String");
    callMethod.addParam("...args", null);
    callMethod.addStmt("throw new Error(\"Not Implemented\");");

    ASMethod resultMethod = proxyType.newMethod(Constants.METHOD_ON_RESULT, Visibility.PROTECTED, Type.VOID.getName());
    resultMethod.addParam("result", "Object");

    ASMethod statusMethod = proxyType.newMethod(Constants.METHOD_ON_STATUS, Visibility.PROTECTED, Type.VOID.getName());
    statusMethod.addParam("status", "Object");
  }
View Full Code Here

TOP

Related Classes of uk.co.badgersinfoil.metaas.dom.ASMethod

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.