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; }
private void printMethods(RemoteInfo rinfo) throws IOException { RemoteInfo rinfoImpl = rinfo.getRemoteInfoAuthOrAsync(); for (MethodInfo minfo : rinfo.methods) { printMethod(rinfoImpl, minfo); printMethodAsync(rinfoImpl, minfo); pr.println(); } }
@Override protected RemoteInfo getBaseRemoteInfo(RemoteInfo rinfoBase) throws GeneratorException { RemoteInfo rinfoAuth = rinfoBase.getRemoteAuth(); return rinfoAuth; }