org.apache.myfaces.view.facelets.compiler
Class Compiler
java.lang.Object
org.apache.myfaces.view.facelets.compiler.Compiler
- Direct Known Subclasses:
- SAXCompiler
public abstract class Compiler
- extends Object
A Compiler instance may handle compiling multiple sources
- Version:
- $Id: Compiler.java 1488297 2013-05-31 16:21:00Z lu4242 $
- Author:
- Jacob Hookom
Method Summary |
void |
addTagDecorator(TagDecorator decorator)
|
void |
addTagLibrary(TagLibrary library)
|
FaceletHandler |
compile(URL src,
String alias)
|
FaceletHandler |
compileComponent(String taglibURI,
String tagName,
Map<String,Object> attributes)
|
FaceletHandler |
compileCompositeComponentMetadata(URL src,
String alias)
|
FaceletHandler |
compileViewMetadata(URL src,
String alias)
|
javax.el.ExpressionFactory |
createExpressionFactory()
|
TagDecorator |
createTagDecorator()
|
TagLibrary |
createTagLibrary()
|
protected abstract FaceletHandler |
doCompile(URL src,
String alias)
|
protected abstract FaceletHandler |
doCompileComponent(String taglibURI,
String tagName,
Map<String,Object> attributes)
|
protected abstract FaceletHandler |
doCompileCompositeComponentMetadata(URL src,
String alias)
|
protected abstract FaceletHandler |
doCompileViewMetadata(URL src,
String alias)
|
Collection<FaceletsProcessing> |
getFaceletsProcessingConfigurations()
|
String |
getFeature(String name)
|
boolean |
isDevelopmentProjectStage()
|
boolean |
isTrimmingComments()
|
boolean |
isTrimmingWhitespace()
|
boolean |
isValidating()
|
void |
setDevelopmentProjectStage(boolean developmentProjectStage)
|
void |
setFaceletsProcessingConfigurations(Collection<FaceletsProcessing> faceletsProcessingConfigurations)
|
void |
setFeature(String name,
String value)
|
void |
setTrimmingComments(boolean trimmingComments)
|
void |
setTrimmingWhitespace(boolean trimmingWhitespace)
|
void |
setValidating(boolean validating)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
log
protected static final Logger log
EXPRESSION_FACTORY
public static final String EXPRESSION_FACTORY
- See Also:
- Constant Field Values
Compiler
public Compiler()
compile
public final FaceletHandler compile(URL src,
String alias)
throws IOException,
FaceletException,
javax.el.ELException,
FacesException
- Throws:
IOException
FaceletException
javax.el.ELException
FacesException
compileViewMetadata
public final FaceletHandler compileViewMetadata(URL src,
String alias)
throws IOException,
FaceletException,
javax.el.ELException,
FacesException
- Throws:
IOException
FaceletException
javax.el.ELException
FacesException
compileCompositeComponentMetadata
public final FaceletHandler compileCompositeComponentMetadata(URL src,
String alias)
throws IOException,
FaceletException,
javax.el.ELException,
FacesException
- Throws:
IOException
FaceletException
javax.el.ELException
FacesException
compileComponent
public final FaceletHandler compileComponent(String taglibURI,
String tagName,
Map<String,Object> attributes)
doCompile
protected abstract FaceletHandler doCompile(URL src,
String alias)
throws IOException,
FaceletException,
javax.el.ELException,
FacesException
- Throws:
IOException
FaceletException
javax.el.ELException
FacesException
doCompileViewMetadata
protected abstract FaceletHandler doCompileViewMetadata(URL src,
String alias)
throws IOException,
FaceletException,
javax.el.ELException,
FacesException
- Throws:
IOException
FaceletException
javax.el.ELException
FacesException
doCompileCompositeComponentMetadata
protected abstract FaceletHandler doCompileCompositeComponentMetadata(URL src,
String alias)
throws IOException,
FaceletException,
javax.el.ELException,
FacesException
- Throws:
IOException
FaceletException
javax.el.ELException
FacesException
doCompileComponent
protected abstract FaceletHandler doCompileComponent(String taglibURI,
String tagName,
Map<String,Object> attributes)
createTagDecorator
public final TagDecorator createTagDecorator()
addTagDecorator
public final void addTagDecorator(TagDecorator decorator)
createExpressionFactory
public final javax.el.ExpressionFactory createExpressionFactory()
createTagLibrary
public final TagLibrary createTagLibrary()
addTagLibrary
public final void addTagLibrary(TagLibrary library)
setFeature
public final void setFeature(String name,
String value)
getFeature
public final String getFeature(String name)
isTrimmingComments
public final boolean isTrimmingComments()
setTrimmingComments
public final void setTrimmingComments(boolean trimmingComments)
isTrimmingWhitespace
public final boolean isTrimmingWhitespace()
setTrimmingWhitespace
public final void setTrimmingWhitespace(boolean trimmingWhitespace)
isValidating
public final boolean isValidating()
setValidating
public final void setValidating(boolean validating)
isDevelopmentProjectStage
public final boolean isDevelopmentProjectStage()
setDevelopmentProjectStage
public final void setDevelopmentProjectStage(boolean developmentProjectStage)
getFaceletsProcessingConfigurations
public Collection<FaceletsProcessing> getFaceletsProcessingConfigurations()
- Returns:
- Since:
- 2.1.0
setFaceletsProcessingConfigurations
public void setFaceletsProcessingConfigurations(Collection<FaceletsProcessing> faceletsProcessingConfigurations)
- Since:
- 2.1.0
Copyright © 2013 The Apache Software Foundation. All Rights Reserved.