org.apache.jasper.compiler
クラス Compiler

java.lang.Object
  |
  +--org.apache.jasper.compiler.Compiler
直系の既知のサブクラス:
CommandLineCompiler, JspCompiler

public class Compiler
extends java.lang.Object

If you want to customize JSP compilation aspects, this class is something you should take a look at. Hope is that people can just extend Compiler and override things like isOutDated() but inherit things like compile(). This might change.

作成者:
Anil K. Vijendran, Mandar Raje, Pierre Delisle

フィールドの概要
protected  JspCompilationContext ctxt
           
protected  JavaCompiler javac
           
protected  Mangler mangler
           
 
コンストラクタの概要
Compiler(JspCompilationContext ctxt)
           
 
メソッドの概要
 java.lang.String changeEncodingIfNecessary(JspReader tmpReader)
          Change the encoding for the reader if specified.
 boolean compile()
          Compile the jsp file from the current engine context
 boolean isOutDated()
          This is a protected method intended to be overridden by subclasses of Compiler.
 void removeGeneratedFiles()
          Remove generated files
 void setJavaCompiler(JavaCompiler javac)
          Set java compiler info
 void setMangler(Mangler mangler)
          Set Mangler which will be used as part of compile().
 
クラス java.lang.Object から継承したメソッド
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

フィールドの詳細

javac

protected JavaCompiler javac

mangler

protected Mangler mangler

ctxt

protected JspCompilationContext ctxt
コンストラクタの詳細

Compiler

public Compiler(JspCompilationContext ctxt)
メソッドの詳細

compile

public boolean compile()
                throws java.io.FileNotFoundException,
                       JasperException,
                       java.lang.Exception
Compile the jsp file from the current engine context
戻り値:
true if the class file was outdated the jsp file was recompiled.

isOutDated

public boolean isOutDated()
This is a protected method intended to be overridden by subclasses of Compiler. This is used by the compile method to do all the compilation.

setJavaCompiler

public void setJavaCompiler(JavaCompiler javac)
Set java compiler info

setMangler

public void setMangler(Mangler mangler)
Set Mangler which will be used as part of compile().

changeEncodingIfNecessary

public java.lang.String changeEncodingIfNecessary(JspReader tmpReader)
                                           throws ParseException
Change the encoding for the reader if specified.

removeGeneratedFiles

public void removeGeneratedFiles()
Remove generated files


Copyright ? 2000 Apache Software Foundation. All Rights Reserved.