Examples of AsMethod


Examples of com.buschmais.cdo.impl.proxy.query.composite.AsMethod

                PropertyMethod propertyMethod = (PropertyMethod) typeMethod;
                GetMethod proxyMethod = new GetMethod(propertyMethod.getName(), propertyMethod.getType());
                addProxyMethod(proxyMethod, propertyMethod.getAnnotatedElement());
            }
        }
        addMethod(new AsMethod(), CompositeObject.class, "as", Class.class);
        addMethod(new GetDelegateMethod<Map<String, Object>>(), CompositeObject.class, "getDelegate");
        addMethod(new com.buschmais.cdo.impl.proxy.query.row.GetMethod(), CompositeRowObject.class, "get", String.class, Class.class);
        addMethod(new GetColumnsMethod(), CompositeRowObject.class, "getColumns");
        addMethod(new HashCodeMethod(), Object.class, "hashCode");
        addMethod(new EqualsMethod(), Object.class, "equals", Object.class);
View Full Code Here

Examples of com.buschmais.xo.impl.proxy.example.composite.AsMethod

                        }
                    }
                }
            }
        }
        addMethod(new AsMethod(), CompositeObject.class, "as", Class.class);
    }
View Full Code Here

Examples of com.buschmais.xo.impl.proxy.query.composite.AsMethod

                PropertyMethod propertyMethod = (PropertyMethod) typeMethod;
                GetMethod proxyMethod = new GetMethod(propertyMethod.getName(), propertyMethod.getType());
                addProxyMethod(proxyMethod, propertyMethod.getAnnotatedElement());
            }
        }
        addMethod(new AsMethod(), CompositeObject.class, "as", Class.class);
        addMethod(new GetDelegateMethod<Map<String, Object>>(), CompositeObject.class, "getDelegate");
        addMethod(new com.buschmais.xo.impl.proxy.query.row.GetMethod(), CompositeRowObject.class, "get", String.class, Class.class);
        addMethod(new GetColumnsMethod(), CompositeRowObject.class, "getColumns");
        addMethod(new HashCodeMethod(), Object.class, "hashCode");
        addMethod(new EqualsMethod(), Object.class, "equals", Object.class);
View Full Code Here

Examples of com.buschmais.xo.impl.proxy.query.composite.AsMethod

                PropertyMethod propertyMethod = (PropertyMethod) typeMethod;
                GetMethod proxyMethod = new GetMethod(propertyMethod.getName(), propertyMethod.getType());
                addProxyMethod(proxyMethod, propertyMethod.getAnnotatedElement());
            }
        }
        addMethod(new AsMethod(), CompositeObject.class, "as", Class.class);
        addMethod(new GetDelegateMethod<Map<String, Object>>(), CompositeObject.class, "getDelegate");
        addMethod(new com.buschmais.xo.impl.proxy.query.row.GetMethod(), CompositeRowObject.class, "get", String.class, Class.class);
        addMethod(new GetColumnsMethod(), CompositeRowObject.class, "getColumns");
        addMethod(new HashCodeMethod(), Object.class, "hashCode");
        addMethod(new EqualsMethod(), Object.class, "equals", Object.class);
View Full Code Here

Examples of net.sf.laja.parser.cdd.behaviour.AsMethod

        behaviour.srcFilename = behaviour.sourceDir + "/" + template.classname + ".java";
        behaviour.setClassname(template.classname);
        behaviour.setStateClass(template.classname + "State");
        behaviour.setParameters(new Parameters());

        AsMethod asMethod = new AsMethod();
        asMethod.setComment("(factory)");
        asMethod.setMethodName("as" + template.classname);
        asMethod.setReturnclass(template.classname);
        Statement statement = new Statement();
        statement.setInnerStatement("        return new " + behaviour.classname + "(state);");
        asMethod.setStatement(statement);
        asMethod.setParameters(new Parameters());
        behaviour.addAsMethod(asMethod);

        Imports imports = new Imports();
        Importstatement importstatement = new Importstatement();
        String fullclassname = template.packagename + "." + template.stateClass;
View Full Code Here

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

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)) {
          i.remove();
          return;
        }
      }
    }
View Full Code Here

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

  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

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

  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

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

    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
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.