public class jrpcgen extends Object
jrpcgen implements a Java-based rpcgen RPC protocol
compiler. jrpcgen is a Java-based tool that generates source code of Java
classes to implement an RPC protocol. The input to jrpcgen is a language
similiar to C (but more probably much more similiar to FORTRAN) known as
the RPC language (Remote Procedure Call Language).| Modifier and Type | Field and Description |
|---|---|
static int |
PARAMS_MORE
A remote procedure expects more than one parameter and thus needs
an XDR wrapping class.
|
static int |
PARAMS_SINGLE
A remote procedure expects only a single parameter, which is a
complex type (class).
|
static int |
PARAMS_SINGLE_BASETYPE
A remote procedure expects only a single parameter, which is of
a base type, like integer, boolean, string, et cetera.
|
static int |
PARAMS_VOID
A remote procedure has no parameters and thus needs to use the
XDR void wrapper class as a dummy.
|
static String |
VERSION
Current version of jrpcgen.
|
| Constructor and Description |
|---|
jrpcgen(JrpcgenContext context) |
| Modifier and Type | Method and Description |
|---|---|
JrpcgenContext |
context() |
JrpcgenModule |
doParse()
The real parsing and code generation part.
|
static void |
main(String[] args)
The main part of jrpcgen where all things start.
|
JrpcgenOptions |
options() |
static void |
printHelp(PrintStream out) |
void |
reset() |
public static final String VERSION
public static final int PARAMS_VOID
public static final int PARAMS_SINGLE
public static final int PARAMS_SINGLE_BASETYPE
public static final int PARAMS_MORE
public jrpcgen(JrpcgenContext context)
public static void main(String[] args)
args - A string array containing the command line arguments passed on invocation.public static void printHelp(PrintStream out)
public void reset()
public JrpcgenContext context()
public JrpcgenOptions options()
public JrpcgenModule doParse() throws FileNotFoundException, Exception
FileNotFoundException - if the specified x-file does not exist or cannot be opened for reading.Exception - if any kind of error like a parser error occurs.Copyright © 2025. All rights reserved.