Examples of Interface


Examples of abstrasy.Interface

            //
            Node inode = INTERFACE.get();
            if (inode == null)
                throw new InterpreterException(StdErrors.Abstract_misplaced);

            Interface ifaceTo = (Interface) inode.getExternal();
            Interface ifaceFrom= (Interface) arg0.getExternal();
            ifaceTo.imports(ifaceFrom);
            return null;
        }
        else {
            //
            // C'est un pcode...
            //

            //
            // récupération du type primaire...
            //
            int tn = arg0.getPCFx_Code();

            //
            // récupération du symbole...
            //
            ASymbol symbole = new ASymbol(PCoder.unselfing(startAt.getSubNode(arg_o++, Node.TYPE_QSYMBOL).getSymbol().getStr()));
            if (symbole.getIdsCnt()!=1)
                throw new InterpreterException(StdErrors.Local_symbol_required);

            //
            // vérification de la fin de l'expression
            //
            startAt.isGoodArgsCnt(arg_o);

            //
            // vérifier que nous somme à l'intérieur d'une section interface...
            //
            Node inode = INTERFACE.get();
            if (inode == null)
                throw new InterpreterException(StdErrors.Abstract_misplaced);

            Interface iface = (Interface) inode.getExternal();

            //
            // c'est parti...
            //

            if (tn == PCoder.PC_FUNCTION)
                iface.declare(symbole.getStr(), Node.TYPE_FUNCTION);

            else
                throw new InterpreterException(StdErrors.Syntax_error);

            return null;
View Full Code Here

Examples of alt.jiapi.file.Interface

        ConstantPool cp = clazz.getConstantPool();
        List l = clazz.getInterfaces();

        String[] iNames = new String[l.size()];
        for (int i = 0; i < iNames.length; i++) {
            Interface iFace = (Interface)l.get(i);

            iNames[i] = iFace.getName();
        }

        return iNames;
    }
View Full Code Here

Examples of com.chenshuo.muduo.protorpc.echo.EchoProto.EchoService.Interface

public class EchoServer {

    public static void main(String[] args) {
        RpcServer server = new RpcServer();
        server.registerService(EchoProto.EchoService.newReflectiveService(new Interface() {
            @Override
            public void echo(RpcController controller, EchoRequest request, RpcCallback<EchoResponse> done) {
                done.run(EchoResponse.newBuilder().setPayload(request.getPayload()).build());
            }
        }));
View Full Code Here

Examples of com.chenshuo.muduo.protorpc.sudoku.SudokuProto.SudokuService.Interface

        Map<String, Service> services = new HashMap<String, Service>();
        final SudokuResponse sudokuResponse = SudokuResponse.newBuilder()
                .setSolved(true)
                .setCheckerboard("98765")
                .build();
        Interface mockImpl = new Interface() {

            @Override
            public void solve(RpcController controller, SudokuRequest request,
                    RpcCallback<SudokuResponse> done) {
                gotRequest = request;
View Full Code Here

Examples of com.citrix.netscaler.nitro.resource.config.network.Interface

    }

    private void validateInterfaces(String publicInterface, String privateInterface) throws ExecutionException {
        try {
            if (!_isSdx && !_cloudManaged) {
                Interface publicIf = Interface.get(_netscalerService, publicInterface);
                Interface privateIf = Interface.get(_netscalerService, privateInterface);
                if (publicIf != null || privateIf != null) {
                    return;
                } else {
                    throw new ExecutionException("Invalid interface name specified for public/private interfaces.");
                }
View Full Code Here

Examples of com.dianping.cat.home.nettopo.entity.Interface

      }

      for (Connection connectionA : netTopologyA.getConnections()) {
        Connection connectionB = new Connection();
        for (Interface interA : connectionA.getInterfaces()) {
          Interface interB = new Interface();
          interB.setDomain(interA.getDomain());
          interB.setGroup(interA.getGroup());
          interB.setKey(interA.getKey());
          interB.setIn(interA.getIn());
          interB.setOut(interA.getOut());
          interB.setInstate(interA.getInstate());
          interB.setOutstate(interA.getOutstate());
          interB.setInstate(interA.getInstate());
          interB.setOutstate(interA.getOutstate());
          interB.setInDiscardsState(interA.getInDiscardsState());
          interB.setOutDiscardsState(interA.getOutDiscardsState());
          interB.setInErrorsState(interA.getInErrorsState());
          interB.setOutErrorsState(interA.getOutErrorsState());
          connectionB.addInterface(interB);
        }
        connectionB.setInsum(connectionA.getInsum());
        connectionB.setOutsum(connectionA.getOutsum());
        connectionB.setFrom(connectionA.getFrom());
View Full Code Here

Examples of com.eviware.soapui.model.iface.Interface

  }

  @Override
  public boolean applies( Interface target )
  {
    Interface iface = ( Interface )target;
    return !iface.getProject().hasNature( Project.JBOSSWS_NATURE_ID );
  }
View Full Code Here

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

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

                                  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

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

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