Package com.google.gxp.compiler.base

Examples of com.google.gxp.compiler.base.Interface


    params.add(new Parameter(new FormalParameter(pos,
                                                 Implementable.INSTANCE_PARAM_NAME,
                                                 Implementable.INSTANCE_PARAM_NAME,
                                                 new TemplateType(pos, name.toString(), name))));

    return new Interface(pos, "<gxp:interface>", fqTemplateName(dottedName),
                         schema, Collections.<JavaAnnotation>emptyList(), imports,
                         throwsDeclarations, params, formalTypeParameters);
  }
View Full Code Here


                                  Collections.<ThrowsDeclaration>emptyList(),
                                  Collections.<Parameter>emptyList(),
                                  Collections.<FormalTypeParameter>emptyList(),
                                  str("foo"));

    Interface iface1 = iface(pos, "com.google.foo.Bar", schema("text/html"),
                             Collections.<Import>emptyList(),
                             Collections.<ThrowsDeclaration>emptyList(),
                             Collections.<Parameter>emptyList(),
                             Collections.<FormalTypeParameter>emptyList());

    Interface iface2 = iface(pos, "com.google.foo.Bar", schema("text/html"),
                             Collections.<Import>emptyList(),
                             Collections.<ThrowsDeclaration>emptyList(),
                             Collections.<Parameter>emptyList(),
                             Collections.<FormalTypeParameter>emptyList());

    assertSerializes(template1.getCallable(), template2.getCallable());
    assertSerializes(template1.getInstanceCallable(), template2.getInstanceCallable());
    assertSerializes(iface1.getCallable(), iface2.getCallable());
    assertSerializes(iface1.getInstanceCallable(), iface2.getInstanceCallable());
    assertSerializes(iface1.getImplementable(), iface2.getImplementable());
  }
View Full Code Here

      List<Import> imports = nodeParts.getImports();
      List<ThrowsDeclaration> throwsDeclarations = nodeParts.getThrowsDeclarations();
      List<FormalTypeParameter> formalTypeParameters = nodeParts.getFormalTypeParameters();

      if (contentType != null) {
        output.accumulate(new Interface(node,
                                        name,
                                        contentType.getSchema(),
                                        javaAnnotations,
                                        imports,
                                        throwsDeclarations,
View Full Code Here

      List<Import> imports = nodeParts.getImports();
      List<ThrowsDeclaration> throwsDeclarations = nodeParts.getThrowsDeclarations();
      List<FormalTypeParameter> formalTypeParameters = nodeParts.getFormalTypeParameters();

      if (contentType != null) {
        output.accumulate(new Interface(node,
                                        name,
                                        contentType.getSchema(),
                                        javaAnnotations,
                                        imports,
                                        throwsDeclarations,
View Full Code Here

TOP

Related Classes of com.google.gxp.compiler.base.Interface

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.