org.apache.jasper.compiler
Class CommandLineCompiler
java.lang.Object
|
+--org.apache.jasper.compiler.Compiler
|
+--org.apache.jasper.compiler.CommandLineCompiler
- public class CommandLineCompiler
- extends Compiler
- implements Mangler
Overrides some methods so that we get the desired effects.
- Author:
- Danno Ferrin
Field Summary |
static java.lang.String[] |
keywords
|
Method Summary |
void |
computeJavaFileName()
|
java.lang.String |
getClassFileName()
The full name of the .class file ( without version number) |
java.lang.String |
getClassName()
The class name ( without package ) of the
generated servlet, including the version number |
java.lang.String |
getJavaFileName()
The full name of the .java file, including
version number ( based on className and outputDir ) |
java.lang.String |
getPackageName()
|
boolean |
isOutDated()
Always outDated. |
static java.lang.String |
manglePackage(java.lang.String name)
Make sure that the package name is a legal Java name |
Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
keywords
public static java.lang.String[] keywords
CommandLineCompiler
public CommandLineCompiler(CommandLineContext ctxt)
isOutDated
public boolean isOutDated()
- Always outDated. (Of course we are, this is an explicit invocation
- Overrides:
- isOutDated in class Compiler
- Returns:
- true
computeJavaFileName
public final void computeJavaFileName()
manglePackage
public static java.lang.String manglePackage(java.lang.String name)
- Make sure that the package name is a legal Java name
- Parameters:
name
- The input string, containing arbitary chars separated by
'.'s, with possible leading, trailing, or double '.'s- Returns:
- legal Java package name.
getClassName
public final java.lang.String getClassName()
- Description copied from interface: Mangler
- The class name ( without package ) of the
generated servlet, including the version number
- Specified by:
- getClassName in interface Mangler
getPackageName
public final java.lang.String getPackageName()
getJavaFileName
public final java.lang.String getJavaFileName()
- Description copied from interface: Mangler
- The full name of the .java file, including
version number ( based on className and outputDir )
- Specified by:
- getJavaFileName in interface Mangler
getClassFileName
public final java.lang.String getClassFileName()
- Description copied from interface: Mangler
- The full name of the .class file ( without version number)
- Specified by:
- getClassFileName in interface Mangler
Copyright © 2000 Apache Software Foundation. All Rights Reserved.