|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.eclipse.jet.compiler.JET2Compiler
public class 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 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 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 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(org.eclipse.core.resources.IProject project,
org.eclipse.core.runtime.IProgressMonitor monitor,
java.util.Map options)
Create an instance |
|
JET2Compiler(org.eclipse.core.resources.IProject project,
java.util.Map options,
IJETCompilerState compilerState,
org.eclipse.core.runtime.IProgressMonitor monitor)
Create an instance of the JET compiler capable of incremental compilation from a saved state. |
|
| Method Summary | |
|---|---|
void |
clean()
|
void |
compile(org.eclipse.core.resources.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(org.eclipse.core.resources.IResource resource)
Test whether the supplied resource is a compilable JET2 source file. |
void |
removeDerivedResources(org.eclipse.core.resources.IResource resource)
Remove any resources for the passed resource representing a JET template. |
void |
removeDerivedResources(org.eclipse.core.resources.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
OPTION_COMPILED_TEMPLATE_PACKAGE option; value: "org.eclipse.jet2.internal.compiled".
public static final java.lang.String DEFAULT_COMPILED_TEMPLATE_SRC_DIR
OPTION_COMPILED_TEMPLATE_SRC_DIR option; value: "jet2java".
public static final java.lang.String DEFAULT_TEMPLATE_EXT
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(org.eclipse.core.resources.IProject project,
java.util.Map options,
IJETCompilerState compilerState,
org.eclipse.core.runtime.IProgressMonitor monitor)
project - the project containing templates to be compiled.options - the compiler optionscompilerState - the saved state from previous a previous compilemonitor - a progress monitor
public JET2Compiler(org.eclipse.core.resources.IProject project,
org.eclipse.core.runtime.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 options| Method Detail |
|---|
public static java.util.Map getDefaultCompilerOptions()
public void createTransformFiles()
public boolean isJET2SourceFile(org.eclipse.core.resources.IResource resource)
resource -
true if the identified resource is a jet2 source filepublic void compile(org.eclipse.core.resources.IResource resource)
resource - a project resource
public void removeDerivedResources(org.eclipse.core.resources.IResource resource)
throws org.eclipse.core.runtime.CoreException
This method is equivalent to:
removeDerivedResources(resource, false).
resource - a resource
org.eclipse.core.runtime.CoreException - if a derived resource cannot be removed.removeDerivedResources(IResource, boolean)
public void removeDerivedResources(org.eclipse.core.resources.IResource resource,
boolean derivedOnly)
throws org.eclipse.core.runtime.CoreException
resource - a resourcederivedOnly - if true, Java files with the derived attribute set are removed.
org.eclipse.core.runtime.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 | |||||||||