Public Instance Methods : SstRmiTypeBuilder

* application: value
	"ACTION
		Set the receiver's %application.  The %application is the place where 
		the receiver stores the Smalltalk specs for Java classes it generates.  
		These are stored on the *instance* side of the %application in methods 
		(one per Java class) whose names are derived from the fully qualified 
		Java class names by replacing all $. with $_.  Setting the %application 
		to nil prevents the receiver from generating Smalltalk specs for Java classes.

	PARAMETERS
		value : <SubApplication> | nil"
Categories
	SST-API Developer
* buildDirectoryStructure: value
	"ACTION
		Set whether or not the receiver should build directory structures for 
		the Java classes it generates.  If @value is true then the receiver 
		uses the fully qualified Java class name to build a directory structure
		(rooted at %directory).  For example, the generated Java code for the 
		class java.lang.Object -> is stored in %directory/java/lang/Object.java.
		If @value is false, the code is stored in %directory/Object.java.  Note that
		if %directory is nil, no Java code is generated.

	PARAMETERS
		value : <Boolean>"
Categories
	SST-API Developer
* directory: value
	"ACTION
		Set the receiver's %directory.  %directory is the root directory in which
		the receiver stores the Java class definitions it generates.  Setting 
		%directory to nil prevents the receiver from generating Java classes.

	PARAMETERS
		value : <String> | nil"
Categories
	SST-API Developer
* generateClassesAndJavaFor: className interfaces: interfaces methods: methods
	"ACTION
		Generate the SST Java specs and Java Stub class for a class 
		called @className with @interfaces and @methods.  @interfaces
		is an array of strings naming Java interfaces (e.g., 'java.rmi.Remote')
		and @methods is an array of two-element arrays comprised of the 
		method signature and an array of Java exception class names.

		self 
			generateClassesAndJavaFor: 'java.class.name'
			interfaces: #('interface.1' 'interface.2' ...)
			methods: #(
				('method1(Ljava.lang.String;J)Z'('java.exception.1' 'java.exception.2' ...))
				...)

		If %application is not nil then the SST RMI class spec for both the class and its 
		corresponding stub	class is generated and stored in the instance side of the 
		%application class.  

		If %directoy is not nil then the Java RMI stub class corresponding to the class spec
		is created and output in a file in %directory (or a subdirectory depending on the 
		class name).

	PARAMETERS
		className : <String>
		interfaces : <Array>
		methods : <Array>"
Categories
	SST-API Developer
* generateClassesAndJavaFrom: specs
	"ACTION
		Generate the SST RMI specs and Java RMI stub code for the 
		classes specified in @specs.  @specs is an array of class spec 
		arrays in the following pattern
			#('java.class.name'
				('interface.1' 'interface.2' ...)
				('method1(Ljava.lang.String;J)Z' ('java.exception.1' 'java.exception.2' ...))
				...)

		See generateClassesAndJavaFor:interfaces:methods: for more details.

	PARAMETERS
		specs : <Array>"
Categories
	SST-API Developer
* generateInterfaceAndJavaFor: className superclass: superclass methods: methods
	"ACTION
		Generate the SST Java specs and Java interface class for an interface
		called @className with @superclass and @methods.  @methods is 
		an array of two-element arrays comprised of the method signature and 
		an array of Java exception class names.

		self 
			generateInterfaceAndJavaFor: 'java.interface.name'
			superclass: 'java.superclass.name'
			methods: #(
				('method1(Ljava.lang.String;J)Z'('java.exception.1' 'java.exception.2' ...))
				...)

		If %application is not nil then the SST RMI interface spec for the class is 
		generated and stored in the instance side of the %application class.  

		If %directoy is not nil then the Java RMI interface class corresponding to 
		the class spec is created and output in a file in %directory (or a 
		subdirectory depending on the class name).

	PARAMETERS
		className : <String>
		superclass : <String>
		methods : <Array>"
Categories
	SST-API Developer
* generateJavaFor: class
	"ACTION
		Generate the Java code corresponding to @class.  If @class is an
		interface, the code output is a straightforward interface definition.
		If it is a class, the Java code output is that of the _Stub for that class.
		The code is generated according to the settings in the receiver.

	PARAMETERS
		class : <SstRmiClass> | <SstRmiInterface>"
Categories
	SST-API Developer
* mergeDefinitionsFrom: filename
	"ACTION
		Merge the Java class definitions from @filename into the receiver.  If
		%application is non-nil, the newly loaded definitions are stored in 
		*instance* methods on the %application class.  For examples of 
		these methods see the instance methods of SstRmiSupport.  The 
		file indicated by @filename should contain Java class descriptions in
		the form output by the com.ibm.sst.JavaTypeRepository.generateFor()
		method (or the lookup() method of that class).

	PARAMETERS
		filename : <String>"
Categories
	SST-API Developer
* mergeDefinitionString: definitionString
	"ACTION
		Merge the Java class definitions in @definitionString into the receiver.  If
		%application is non-nil, the newly loaded definitions are stored in 
		*instance* methods on the %application class.  For examples of 
		these methods see the instance methods of SstRmiSupport.  
		@definitionStringshould contain Java class descriptions in the form 
		output by the com.ibm.sst.JavaTypeRepository.generateFor()
		method (or the lookup() method of that class).

	PARAMETERS
		definitionString : <String>

	EXCEPTIONS
		ExSstNonFatalError : Thrown if a Smalltalk compiler is not available."
Categories
	SST-API Developer
* mergeRemoteDefinitionsFor: names from: server
	"ACTION
		Merge the definitions for the Java classes in @name from the Java
		type repository @server into the receiver.  If %application is non-nil, 
		the newly loaded definitions are stored in *instance* methods on the 
		%application class.  For examples of these methods see the instance 
		methods of SstRmiSupport.  @server should be a remote reference
		to the JavaTypeRepository server.

	PARAMETERS
		names : <Array of String>
		server : <IuSstRemoteReference>"
Categories
	SST-API Developer

[FIRST] [PREV] [NEXT] [LAST]