Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

com.arranger.jarl.script.jarlsp
Class JarlSPCompiler  view JarlSPCompiler download JarlSPCompiler.java

java.lang.Object
  extended bycom.arranger.jarl.script.jarlsp.JarlSPCompiler
All Implemented Interfaces:
com.arranger.jarl.script.gsp.IGSPCompiler

public class JarlSPCompiler
extends java.lang.Object
implements com.arranger.jarl.script.gsp.IGSPCompiler

JarlSPCompiler created on Mar 5, 2003


Field Summary
protected  java.lang.String m_classOutput
           
protected  java.lang.String m_classPath
           
protected  com.arranger.jarl.script.gsp.GSP m_gsp
           
protected  java.lang.String m_javaCompiler
           
protected  java.lang.String m_javaOutput
           
protected  java.lang.String m_sourceRoot
           
protected static char PATH_SEPARATOR
           
 
Constructor Summary
JarlSPCompiler()
           
 
Method Summary
 void compile(java.io.File jarlspFile)
          Same as compile(java.io.File) 55 but a list of files
 java.lang.String execute(java.lang.String ispJavaLocation, com.arranger.jarl.base.IContext context)
          Executes the files that are previously compiled
static java.lang.String getClassname(java.lang.String path)
          Gets fully qualified class name for 'foo/bar/myNbsp'.
 java.lang.String getClassOutput()
           
 java.lang.String getClassPath()
           
static java.io.File getFile(java.lang.String path, java.lang.String ext, java.lang.String basePath)
           
 java.lang.String getJavaCompiler()
           
static java.io.File getJavaFile(java.lang.String path, java.lang.String basePath)
          Gets output file for 'foo/bar/myNbsp'.
 java.lang.String getJavaOutput()
           
static java.lang.String getRelativePath(java.io.File file, java.lang.String root)
          Gets 'foo/bar/myNbsp' for '/usr/local/ui/foo/bar/myNbsp.nbsp'.
 java.lang.String getSourceRoot()
           
static java.io.File getXmlFile(java.lang.String path, java.lang.String basePath)
           
 java.io.Reader open(java.lang.String file)
          Gets the inuput stream to the specified file.
 java.lang.String parse(java.io.File ispFile, com.arranger.jarl.base.IContext context)
          Parses a specific nbsp ispFile.
 void setClassOutput(java.lang.String classOutput)
           
 void setClassPath(java.lang.String classPath)
           
 void setJavaCompiler(java.lang.String javaCompiler)
           
 void setJavaOutput(java.lang.String javaOutput)
           
 void setSourceRoot(java.lang.String sourceRoot)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

PATH_SEPARATOR

protected static final char PATH_SEPARATOR

m_gsp

protected com.arranger.jarl.script.gsp.GSP m_gsp

m_javaCompiler

protected java.lang.String m_javaCompiler

m_sourceRoot

protected java.lang.String m_sourceRoot

m_javaOutput

protected java.lang.String m_javaOutput

m_classOutput

protected java.lang.String m_classOutput

m_classPath

protected java.lang.String m_classPath
Constructor Detail

JarlSPCompiler

public JarlSPCompiler()
Method Detail

getJavaCompiler

public java.lang.String getJavaCompiler()

setJavaCompiler

public void setJavaCompiler(java.lang.String javaCompiler)

getSourceRoot

public java.lang.String getSourceRoot()

setSourceRoot

public void setSourceRoot(java.lang.String sourceRoot)

getJavaOutput

public java.lang.String getJavaOutput()

setJavaOutput

public void setJavaOutput(java.lang.String javaOutput)

getClassOutput

public java.lang.String getClassOutput()

setClassOutput

public void setClassOutput(java.lang.String classOutput)

getClassPath

public java.lang.String getClassPath()

setClassPath

public void setClassPath(java.lang.String classPath)

parse

public java.lang.String parse(java.io.File ispFile,
                              com.arranger.jarl.base.IContext context)
                       throws com.arranger.jarl.script.gsp.GSPException,
                              java.io.IOException
Parses a specific nbsp ispFile.


compile

public void compile(java.io.File jarlspFile)
             throws java.lang.Exception
Same as compile(java.io.File) 55 but a list of files


execute

public java.lang.String execute(java.lang.String ispJavaLocation,
                                com.arranger.jarl.base.IContext context)
                         throws java.lang.Exception
Executes the files that are previously compiled


open

public java.io.Reader open(java.lang.String file)
                    throws com.arranger.jarl.script.gsp.GSPException
Gets the inuput stream to the specified file.

Specified by:
open in interface com.arranger.jarl.script.gsp.IGSPCompiler

getRelativePath

public static java.lang.String getRelativePath(java.io.File file,
                                               java.lang.String root)
                                        throws java.io.IOException
Gets 'foo/bar/myNbsp' for '/usr/local/ui/foo/bar/myNbsp.nbsp'.


getClassname

public static java.lang.String getClassname(java.lang.String path)
Gets fully qualified class name for 'foo/bar/myNbsp'.


getJavaFile

public static java.io.File getJavaFile(java.lang.String path,
                                       java.lang.String basePath)
                                throws java.io.IOException
Gets output file for 'foo/bar/myNbsp'.


getXmlFile

public static java.io.File getXmlFile(java.lang.String path,
                                      java.lang.String basePath)
                               throws java.io.IOException

getFile

public static java.io.File getFile(java.lang.String path,
                                   java.lang.String ext,
                                   java.lang.String basePath)
                            throws java.io.IOException