Package org.acplt.oncrpc.apps.jrpcgen
Class jrpcgen
java.lang.Object
org.acplt.oncrpc.apps.jrpcgen.jrpcgen
The class
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).- Version:
- $Revision: 1.6 $ $Date: 2007/05/29 19:38:30 $ $State: Exp $ $Locker: $
- Author:
- Harald Albrecht
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intA remote procedure expects more than one parameter and thus needs an XDR wrapping class.static final intA remote procedure expects only a single parameter, which is a complex type (class).static final intA remote procedure expects only a single parameter, which is of a base type, like integer, boolean, string, et cetera.static final intA remote procedure has no parameters and thus needs to use the XDR void wrapper class as a dummy.static final StringCurrent version of jrpcgen. -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
VERSION
Current version of jrpcgen.- See Also:
-
PARAMS_VOID
public static final int PARAMS_VOIDA remote procedure has no parameters and thus needs to use the XDR void wrapper class as a dummy.- See Also:
-
PARAMS_SINGLE
public static final int PARAMS_SINGLEA remote procedure expects only a single parameter, which is a complex type (class).- See Also:
-
PARAMS_SINGLE_BASETYPE
public static final int PARAMS_SINGLE_BASETYPEA remote procedure expects only a single parameter, which is of a base type, like integer, boolean, string, et cetera.- See Also:
-
PARAMS_MORE
public static final int PARAMS_MOREA remote procedure expects more than one parameter and thus needs an XDR wrapping class.- See Also:
-
-
Constructor Details
-
jrpcgen
-
-
Method Details
-
main
The main part of jrpcgen where all things start.- Parameters:
args- A string array containing the command line arguments passed on invocation.
-
printHelp
-
reset
public void reset() -
context
-
options
-
doParse
The real parsing and code generation part. This has been factored out of main() in order to make it available as an Ant task.- Throws:
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.
-