|
||||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.eclipse.jet.compiler.JET2Compiler
The compiler that turns a JET2 sources files Java files in the Eclipse workspace.
Field Summary | |
---|---|
static java.lang.String |
COMPILE_PROBLEM_MARKER
The Marker created by the compiler on all identified problems. |
static java.lang.String |
DEFAULT_COMPILED_TEMPLATE_PACKAGE
The default value of the JET2Compiler.OPTION_COMPILED_TEMPLATE_PACKAGE option; value: "org.eclipse.jet2.internal.compiled". |
static java.lang.String |
DEFAULT_COMPILED_TEMPLATE_SRC_DIR
The default value of the JET2Compiler.OPTION_COMPILED_TEMPLATE_SRC_DIR option; value: "jet2java". |
static java.lang.Boolean |
DEFAULT_SET_JAVA_FILES_AS_DERIVED
|
static java.lang.String |
DEFAULT_TEMPLATE_EXT
The default value of the JET2Compiler.OPTION_TEMPLATE_EXT option; value: "jet". |
static java.lang.String |
OPTION_COMPILED_TEMPLATE_PACKAGE
Compiler option specifying the package to which compiled templates are written; value: "compiledTemplatePackage". |
static java.lang.String |
OPTION_COMPILED_TEMPLATE_SRC_DIR
Compiler option specifying the Java project source directory to which compiled templates are written; value: "compiledTemplateSrcDir". |
static java.lang.String |
OPTION_SET_JAVA_FILES_AS_DERIVED
|
static java.lang.String |
OPTION_TEMPLATE_EXT
Compiler option specifying which extensions are recognized as extensions; value: "templateExt". |
static java.lang.String |
RUNTIME_PROBLEM_MARKER
|
Constructor Summary | |
---|---|
JET2Compiler(IProject project,
IProgressMonitor monitor,
java.util.Map options)
Create an instance |
|
JET2Compiler(IProject project,
java.util.Map options,
IJETCompilerState compilerState,
IProgressMonitor monitor)
Create an instance of the JET compiler capable of incremental compilation from a saved state. |
Method Summary | |
---|---|
void |
clean()
|
void |
compile(IResource resource)
Compile the passed resource into a Java file. |
void |
createTransformFiles()
Create the Template Loader class for the project |
IJETCompilerState |
getCompilerState()
Returns the current compiler state |
static java.util.Map |
getDefaultCompilerOptions()
|
int |
getNoCompiles()
|
boolean |
isJET2SourceFile(IResource resource)
Test whether the supplied resource is a compilable JET2 source file. |
void |
removeDerivedResources(IResource resource)
Remove any resources for the passed resource representing a JET template. |
void |
removeDerivedResources(IResource resource,
boolean derivedOnly)
Remove any derived resources for this resource |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final java.lang.String RUNTIME_PROBLEM_MARKER
public static final java.lang.String COMPILE_PROBLEM_MARKER
public static final java.lang.String DEFAULT_COMPILED_TEMPLATE_PACKAGE
JET2Compiler.OPTION_COMPILED_TEMPLATE_PACKAGE
option; value: "org.eclipse.jet2.internal.compiled".
public static final java.lang.String DEFAULT_COMPILED_TEMPLATE_SRC_DIR
JET2Compiler.OPTION_COMPILED_TEMPLATE_SRC_DIR
option; value: "jet2java".
public static final java.lang.String DEFAULT_TEMPLATE_EXT
JET2Compiler.OPTION_TEMPLATE_EXT
option; value: "jet".
public static final java.lang.Boolean DEFAULT_SET_JAVA_FILES_AS_DERIVED
public static final java.lang.String OPTION_COMPILED_TEMPLATE_PACKAGE
public static final java.lang.String OPTION_COMPILED_TEMPLATE_SRC_DIR
public static final java.lang.String OPTION_TEMPLATE_EXT
public static final java.lang.String OPTION_SET_JAVA_FILES_AS_DERIVED
Constructor Detail |
public JET2Compiler(IProject project, java.util.Map options, IJETCompilerState compilerState, IProgressMonitor monitor)
project
- the project containing templates to be compiled.options
- the compiler optionscompilerState
- the saved state from previous a previous compilemonitor
- a progress monitorpublic JET2Compiler(IProject project, IProgressMonitor monitor, java.util.Map options)
project
- the project upon which the compiler will actmonitor
- a progress monitor for compiler actionsoptions
- a map of compiler optionsMethod Detail |
public static java.util.Map getDefaultCompilerOptions()
public void createTransformFiles()
public boolean isJET2SourceFile(IResource resource)
resource
-
true
if the identified resource is a jet2 source filepublic void compile(IResource resource)
resource
- a project resourcepublic void removeDerivedResources(IResource resource) throws CoreException
This method is equivalent to:
removeDerivedResources(resource, false)
.
resource
- a resource
CoreException
- if a derived resource cannot be removed.JET2Compiler.removeDerivedResources(IResource, boolean)
public void removeDerivedResources(IResource resource, boolean derivedOnly) throws CoreException
resource
- a resourcederivedOnly
- if true
, Java files with the derived attribute set are removed.
CoreException
- if a derived resource cannot be removed.public final int getNoCompiles()
public void clean()
public final IJETCompilerState getCompilerState()
|
Copyright 2006 IBM Corporation and others. All Rights Reserved. |
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |