Package org.acplt.oncrpc.apps.jrpcgen
Class JrpcgenOptions
java.lang.Object
org.acplt.oncrpc.apps.jrpcgen.JrpcgenOptions
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionclassstatic enum -
Field Summary
FieldsModifier and TypeFieldDescriptionName of class containing global constants.booleanClamp version and program number in client method stubs to the version and program number specified in the x-file.Name of class containing the ONC/RPC client stubs.booleanEnable diagnostic messages when parsing the x-file.Destination directory where to place the generated files.booleanEnable automatic initialization of String with empty Strings instead of null reference.booleanEnable generation of accessors in order to use XDR classes as beans.booleanEnable tagging of XDR classes as being SerializablebooleanDisable automatic backup of old source code files, iftrue.booleanDo not generate source code for the client proxy stub iftrue.booleaninhibit generation of Java enumertions.booleaninhibit generation of equals() methods.booleanDo not generate source code for the server proxy stub iftrue.booleaninhibit generation of toString() methods.booleaninhibit generation of value constructor that is expecting all members.booleanDo not generate XDR datatype classes iftrue.Specifies package name for generated source code, if notnull.booleanParse x-file only but do not create source code files if set totrue.Name of class containing the ONC/RPC server stubs.booleanCreate TCP-Server onlytrue.booleanCreate TCP-Server onlytrue.String containing date/time when a jrpcgen run was started.booleanVerbosity flag.booleanSupply (additional) call information to server method stubs. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanbooleanbooleanbooleanbooleanbooleanbooleanbooleanbooleanbooleanbooleannewArguments(String[] arguments) static voidprintOptions(PrintStream out) reset()toString()
-
Field Details
-
startDate
String containing date/time when a jrpcgen run was started. This string is used in the headers of the generated source code files. -
noBackups
public boolean noBackupsDisable automatic backup of old source code files, iftrue. -
clampProgAndVers
public boolean clampProgAndVersClamp version and program number in client method stubs to the version and program number specified in the x-file. -
withCallInfo
public boolean withCallInfoSupply (additional) call information to server method stubs. -
debug
public boolean debugEnable diagnostic messages when parsing the x-file. -
verbose
public boolean verboseVerbosity flag. Iftrue, then jrpcgen will report about the steps it is taking when generating all the source code files. -
parseOnly
public boolean parseOnlyParse x-file only but do not create source code files if set totrue. -
destinationDir
Destination directory where to place the generated files. -
packageName
Specifies package name for generated source code, if notnull. Ifnull, then no package statement is emitted. -
baseClassname
Name of class containing global constants. It is derived from the filename with the extension (".x") and path removed. -
noClient
public boolean noClientDo not generate source code for the client proxy stub iftrue. -
noServer
public boolean noServerDo not generate source code for the server proxy stub iftrue. -
serverClass
Name of class containing the ONC/RPC server stubs. -
noXdr
public boolean noXdrDo not generate XDR datatype classes iftrue. -
serverTcpOnly
public boolean serverTcpOnlyCreate TCP-Server onlytrue. -
serverUdpOnly
public boolean serverUdpOnlyCreate TCP-Server onlytrue. -
clientClass
Name of class containing the ONC/RPC client stubs. -
makeSerializable
public boolean makeSerializableEnable tagging of XDR classes as being Serializable -
makeBean
public boolean makeBeanEnable generation of accessors in order to use XDR classes as beans. -
initStrings
public boolean initStringsEnable automatic initialization of String with empty Strings instead of null reference. -
noToString
public boolean noToStringinhibit generation of toString() methods. -
noEquals
public boolean noEqualsinhibit generation of equals() methods. -
noEnum
public boolean noEnuminhibit generation of Java enumertions. This is mainly for legacy support, where applications still expect interfaces as representation of an enumeration. -
noValueCtor
public boolean noValueCtorinhibit generation of value constructor that is expecting all members. only with struct
-
-
Constructor Details
-
JrpcgenOptions
public JrpcgenOptions()
-
-
Method Details
-
javaEnumerationsEnabled
public boolean javaEnumerationsEnabled() -
generateToStringMethod
public boolean generateToStringMethod() -
generateEqualsMethod
public boolean generateEqualsMethod() -
generateValueConstructor
public boolean generateValueConstructor() -
generateJavaFiles
public boolean generateJavaFiles() -
generateClientStub
public boolean generateClientStub() -
generateServerStub
public boolean generateServerStub() -
generateProgramConstants
public boolean generateProgramConstants() -
generateXdrTypes
public boolean generateXdrTypes() -
generateTcpTransport
public boolean generateTcpTransport() -
generateUdpTransport
public boolean generateUdpTransport() -
toString
-
printOptions
-
newArguments
-
reset
-