Package org.jusecase.jte.internal
Class TemplateCompiler
- java.lang.Object
-
- org.jusecase.jte.internal.TemplateCompiler
-
public class TemplateCompiler extends Object
-
-
Field Summary
Fields Modifier and Type Field Description static StringCLASS_PREFIXstatic StringCLASS_SUFFIXstatic booleanDEBUGstatic StringLAYOUT_DIRECTORYstatic StringLAYOUT_EXTENSIONstatic StringLINE_INFO_FIELDstatic StringPACKAGE_NAMEstatic StringTAG_DIRECTORYstatic StringTAG_EXTENSIONstatic StringTEXT_PART_BINARYstatic StringTEXT_PART_STRING
-
Constructor Summary
Constructors Constructor Description TemplateCompiler(CodeResolver codeResolver, Path classDirectory, TemplateMode templateMode)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclean(String name)voidcleanAll()Template<?>compile(String name)List<String>getTemplatesUsing(String name)booleanhasChanged(String name)voidprecompile(List<String> names, List<String> compilePath)voidprecompileAll(List<String> compilePath)DebugInforesolveDebugInfo(ClassLoader classLoader, StackTraceElement[] stackTrace)voidsetNullSafeTemplateCode(boolean nullSafeTemplateCode)
-
-
-
Field Detail
-
TAG_EXTENSION
public static final String TAG_EXTENSION
- See Also:
- Constant Field Values
-
LAYOUT_EXTENSION
public static final String LAYOUT_EXTENSION
- See Also:
- Constant Field Values
-
TAG_DIRECTORY
public static final String TAG_DIRECTORY
- See Also:
- Constant Field Values
-
LAYOUT_DIRECTORY
public static final String LAYOUT_DIRECTORY
- See Also:
- Constant Field Values
-
CLASS_PREFIX
public static final String CLASS_PREFIX
- See Also:
- Constant Field Values
-
CLASS_SUFFIX
public static final String CLASS_SUFFIX
- See Also:
- Constant Field Values
-
PACKAGE_NAME
public static final String PACKAGE_NAME
- See Also:
- Constant Field Values
-
LINE_INFO_FIELD
public static final String LINE_INFO_FIELD
- See Also:
- Constant Field Values
-
TEXT_PART_STRING
public static final String TEXT_PART_STRING
- See Also:
- Constant Field Values
-
TEXT_PART_BINARY
public static final String TEXT_PART_BINARY
- See Also:
- Constant Field Values
-
DEBUG
public static final boolean DEBUG
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
TemplateCompiler
public TemplateCompiler(CodeResolver codeResolver, Path classDirectory, TemplateMode templateMode)
-
-
Method Detail
-
cleanAll
public void cleanAll()
-
clean
public void clean(String name)
-
hasChanged
public boolean hasChanged(String name)
-
setNullSafeTemplateCode
public void setNullSafeTemplateCode(boolean nullSafeTemplateCode)
-
resolveDebugInfo
public DebugInfo resolveDebugInfo(ClassLoader classLoader, StackTraceElement[] stackTrace)
-
-