Ejemplo n.º 1
0
  private GenRemoteStub(PrintContext pctxt, RemoteInfo rinfo, CodePrinter pr)
      throws GeneratorException {

    RemoteInfo rinfoImpl = rinfo.getRemoteAuth();
    if (rinfoImpl == null) rinfoImpl = rinfo.getRemoteAsync();

    this.rinfo = rinfo;
    this.pr = pr;
    this.className = pctxt.getStubClassQName(rinfo, rinfo.pack);
    this.pctxt = pctxt;
  }
Ejemplo n.º 2
0
  private void printMethods(RemoteInfo rinfo) throws IOException {

    RemoteInfo rinfoImpl = rinfo.getRemoteInfoAuthOrAsync();

    for (MethodInfo minfo : rinfo.methods) {
      printMethod(rinfoImpl, minfo);
      printMethodAsync(rinfoImpl, minfo);
      pr.println();
    }
  }
Ejemplo n.º 3
0
 @Override
 protected RemoteInfo getBaseRemoteInfo(RemoteInfo rinfoBase) throws GeneratorException {
   RemoteInfo rinfoAuth = rinfoBase.getRemoteAuth();
   return rinfoAuth;
 }