ozone core API

org.ozoneDB.tools.OPP
Class OPP

java.lang.Object
  extended byorg.ozoneDB.tools.OPP.OPP

public class OPP
extends java.lang.Object

Command line driver of the OPP tool.

Version:
$Revision$Date$2
Author:
SMB

Field Summary
private  boolean compileSource
           
static java.lang.String JAVADOC_PATTERN
          Update methods can marked with the following tag in its appropriate Javadoc Comment: "@update"
private  boolean keepSource
           
static java.lang.String METHOD_PATTERN
          All method signatures in build interfaces must look as foollows, otherwise OPP is unable to find them: public package.return.Class[] methodname (
private  StdOutMessageWriter msgOut
           
private  boolean odmg
           
private  OPPBean oppBean
           
private  java.lang.String outputDirName
           
static java.lang.String SIGNATURE_DELIMITER
           
private  java.lang.String sourceDirName
           
static java.lang.String UPDATE_SIGN
          Update methods can marked with the following in the lines following the method signature: //update
 
Constructor Summary
OPP()
           
 
Method Summary
private  void compileSource(java.io.File sourceDir, java.io.File outputDir, MessageWriter genListener, java.util.Collection classes)
           
private  void generate(java.util.Collection classes, boolean preservePackageNames)
           
private  java.util.Collection getModifiedNames(java.io.File sourceDir, java.util.Collection classes, java.lang.String postfix)
           
static void main(java.lang.String[] args)
           
protected  void makeProxiesAndFactories(java.util.Collection classes, java.io.File sourceDir, java.io.File outputDir, java.lang.String factoryPost, java.lang.String proxyPost, MessageWriter msgListener)
           
private  void manipulateClass(java.lang.String className, MessageWriter genListener)
           
protected static java.lang.String parentDirectoryName(java.lang.String directoryName, int dotCount)
           
static void printUsage()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

SIGNATURE_DELIMITER

public static final java.lang.String SIGNATURE_DELIMITER
See Also:
Constant Field Values

UPDATE_SIGN

public static final java.lang.String UPDATE_SIGN
Update methods can marked with the following in the lines following the method signature:
   //update
 

See Also:
Constant Field Values

METHOD_PATTERN

public static final java.lang.String METHOD_PATTERN
All method signatures in build interfaces must look as foollows, otherwise OPP is unable to find them:
   public package.return.Class[] methodname (
 

See Also:
Constant Field Values

JAVADOC_PATTERN

public static final java.lang.String JAVADOC_PATTERN
Update methods can marked with the following tag in its appropriate Javadoc Comment:
   "@update"
 

See Also:
Constant Field Values

keepSource

private boolean keepSource

compileSource

private boolean compileSource

outputDirName

private java.lang.String outputDirName

sourceDirName

private java.lang.String sourceDirName

msgOut

private StdOutMessageWriter msgOut

oppBean

private OPPBean oppBean

odmg

private boolean odmg
Constructor Detail

OPP

public OPP()
Method Detail

main

public static void main(java.lang.String[] args)

generate

private void generate(java.util.Collection classes,
                      boolean preservePackageNames)

manipulateClass

private void manipulateClass(java.lang.String className,
                             MessageWriter genListener)
                      throws java.lang.Exception
Throws:
java.lang.Exception

compileSource

private void compileSource(java.io.File sourceDir,
                           java.io.File outputDir,
                           MessageWriter genListener,
                           java.util.Collection classes)
                    throws CompilerException
Throws:
CompilerException

getModifiedNames

private java.util.Collection getModifiedNames(java.io.File sourceDir,
                                              java.util.Collection classes,
                                              java.lang.String postfix)

parentDirectoryName

protected static java.lang.String parentDirectoryName(java.lang.String directoryName,
                                                      int dotCount)

makeProxiesAndFactories

protected void makeProxiesAndFactories(java.util.Collection classes,
                                       java.io.File sourceDir,
                                       java.io.File outputDir,
                                       java.lang.String factoryPost,
                                       java.lang.String proxyPost,
                                       MessageWriter msgListener)
                                throws java.lang.Exception
Throws:
java.lang.Exception

printUsage

public static void printUsage()

ozone core API

Copyright (C) The Ozone Database Project - www.ozone-db.org. All rights reserved.