IRISLIB database
Java Class Reference

This class handles creating the proxy Java class. More...

Inheritance diagram for Java:
Collaboration diagram for Java:

Static Public Member Functions

 CloseFile (_.Library.String pathName, _.Library.String className, _.Compiler.Binding.JavaFile file, projIsSuccessful)
 Close the file specified by pathName and className. More...
 
 CreateDeclaration (_.Compiler.Binding.JavaFile file, _.Library.Boolean isAbstract, _.Library.String className, _.Library.String classType, _.Library.String super, _.Compiler.Binding.JavaDocCreator jdCreator, _.Library.String description)
 Writes Java class declaration to the Java file.
 
 CreatePackage (_.Compiler.Binding.JavaFile file, _.Library.String javaPackage)
 Writes package info to Java file.
 
_.Library.Status CreateProjection (IRISClassName, _.Library.ArrayOfDataTypes projParams, flushGlobals, properties, _.Library.String qstruct)
 Creates the proxy Java class. More...
 
_.Compiler.Binding.JavaFile GetFile (_.Library.String pathName, _.Library.String className, _.Library.Boolean isInterface, _.Library.ArrayOfDataTypes projParams, generateTime)
 Returns a newly created stub file if the file specified by pathName and className doesn't exist. More...
 
_.Library.RawString SetPackageDir (_.Library.RawString rootdir, _.Library.RawString javaPackage)
 Returns the pathname for the directory the projected Java file would be in.
 

Additional Inherited Members

- Public Member Functions inherited from RegisteredObject
_.Library.Status OnAddToSaveSet (_.Library.Integer depth, _.Library.Integer insert, _.Library.Integer callcount)
 This callback method is invoked when the current object is added to the SaveSet,. More...
 
_.Library.Status OnClose ()
 This callback method is invoked by the <METHOD>Close</METHOD> method to. More...
 
_.Library.Status OnConstructClone (_.Library.RegisteredObject object, _.Library.Boolean deep, _.Library.String cloned)
 This callback method is invoked by the <METHOD>ConstructClone</METHOD> method to. More...
 
_.Library.Status OnNew ()
 This callback method is invoked by the <METHOD>New</METHOD> method to. More...
 
_.Library.Status OnValidateObject ()
 This callback method is invoked by the <METHOD>ValidateObject</METHOD> method to. More...
 
- Static Public Attributes inherited from RegisteredObject
 CAPTION = None
 Optional name used by the Form Wizard for a class when generating forms. More...
 
 JAVATYPE = None
 The Java type to be used when exported.
 
 PROPERTYVALIDATION = None
 This parameter controls the default validation behavior for the object. More...
 

Detailed Description

This class handles creating the proxy Java class.

Member Function Documentation

◆ CloseFile()

CloseFile ( _.Library.String  pathName,
_.Library.String  className,
_.Compiler.Binding.JavaFile  file,
  projIsSuccessful 
)
static

Close the file specified by pathName and className.

If a temporary file exists for the class, copy its content to the right .java file, then delete the temporary file.

◆ CreateProjection()

_.Library.Status CreateProjection (   IRISClassName,
_.Library.ArrayOfDataTypes  projParams,
  flushGlobals,
  properties,
_.Library.String  qstruct 
)
static

Creates the proxy Java class.

IRISClassName is the full name of the IRIS class being projected (including package name). projParams is the array of projection parameters defined in the IRIS class. flushGlobals is set to 0 if createProjection() is called during the projection of another class, and 1 otherwise. It prevents looping projection calls, and also flushes out globals used during projection. properties is used by a subclass that is calling CreateProjection() on its leftmost superclass. It helps the subclass keep track of properties already existing in its superclass, so that it doesn't reproject those properties.

◆ GetFile()

_.Compiler.Binding.JavaFile GetFile ( _.Library.String  pathName,
_.Library.String  className,
_.Library.Boolean  isInterface,
_.Library.ArrayOfDataTypes  projParams,
  generateTime 
)
static

Returns a newly created stub file if the file specified by pathName and className doesn't exist.

Otherwise, returns a temporary file that will be recopied and removed once projection succeeds.